Generate Authorable FIelds in Loop Based on Chosen Amount of Columns
SOLVE
I'm trying to create a difficult (for me) module with authorable fields based on a author-chosen amount of columns. Getting the loop and fields.json syntax correct so that I will have a group that has gives an author the correct amount and kind of field options is proving challenging.
Scenario: an author can choose a row to have two, three or four columns, each of which has an indicator <div>, header text and regular text. One chosen, the loop should make x amount of authorable elements of these three elements per column, with some indication for the author of which column is authoring which elements. Here's what I'm trying to accomplish in the loop, with an index being added to the indicator <div>'s ID based on the amount of loops generated:
Then continue to loop by module.columns but change the col-md- to use {{ module.number_of_columns }}, column.index should be loop.index, and I don't see a testhead or texttest in your json so I've switched them with your circhead and circtext.
Then continue to loop by module.columns but change the col-md- to use {{ module.number_of_columns }}, column.index should be loop.index, and I don't see a testhead or texttest in your json so I've switched them with your circhead and circtext.