I would like to dynamically create columns based on the amount of images I add in a CMS collection item. There doesn’t seem to be an easy way to do this with the binding settings.
My thought is to have a few different types of layouts and conditionally show them based on the images that are set. For example, if only the first 2 images are set it will show a two column layout, however if 3 or 4 are set it will hide all other layouts and assume that all the images have been populated whereby it would show a sophisticated layout and hide all other layouts.
Does this have any performance drawbacks considering there would be duplicate image galleries? I’m assuming not because they are conditional, but I don’t know if that is done before the rendering or after.