Speed of Duplicating Elements Vs Conditions

Hey everyone! (TL;DR at the end)

I’m reaching out to the community and veteran Bubblers for advice before building my app in a way I might regret later.

Context: I have 50 data fields within a “Country” data type, including bollards, poles, cars, and others. I’m creating a “dynamic” repeating group to display different content types. This will be placed on a page showing 50 categories, each with information specific to that country.

Here’s an example of how it would look: There will be 50 sections like this. For instance, the bollard section will display all bollard elements in that country, and so on.

Question: Is it better to have 50 sections on the page, each displaying its respective info, or to have one section within a repeating group of content numbers? The repeating group would dynamically create the necessary sections based on a list of numbers provided (via JS Tools List of Numbers element).

In the single section within the repeating group, I would check the current cell’s index to display the correct content. For example, “if current cell’s index is 1, display country’s bollards; if current cell’s index is 2, display country’s poles,” and so forth.

Each section would include a repeating group displaying the category images, with 50 conditions to show the correct images based on the parent repeating group’s current cell index.

TL;DR: Should I predefine 50 elements on the page, or dynamically create them via a repeating group and use conditions to display the right data in each section (with each section having 50 conditions)?

This topic was automatically closed after 70 days. New replies are no longer allowed.