flux icon indicating copy to clipboard operation
flux copied to clipboard

Problem in Pages with dynamic colPos

Open jurajsulek opened this issue 5 years ago • 0 comments

Hi,

we use this configuration in page tempalte

<flux:form.section name="contentSections">
    <flux:form.object name="contentSection" label="Section">
      <flux:field.input name="title" label="Section title"/>
      <flux:field.checkbox name="fullpageContainer" label="Fullpage Container?" default="0" />
    </flux:form.object>
  </flux:form.section>

  <flux:grid>
    <flux:grid.row>
      <flux:grid.column colPos="4" name="Headline Unit" label="Headline Unit"/>
    </flux:grid.row>

    <v:condition.type.isArray value="{contentSections}">
      <f:for each="{contentSections}" as="sectionObject" iteration="iteration">
        <flux:grid.row>
          <flux:grid.column colPos="{iteration.cycle}0" name="{sectionObject.contentSection.title}" label="{sectionObject.contentSection.title}"/>
        </flux:grid.row>
      </f:for>
    </v:condition.type.isArray>
  </flux:grid>

So the user can create as many content columns as he need. Everything works well in the old version of Flux. But in version 9.4.1. if someone opens a content element in one of these dynamic content column, they get in the column field [ INVALID VALUE ("10") ]. In the Column field is only the one hardcoded content column <flux:grid.column colPos="4" name="Headline Unit" label="Headline Unit"/> but the dynamics are missing.

jurajsulek avatar Sep 07 '20 07:09 jurajsulek