Optional item-set rendering issue


#1

Enonic version: 6.15.4
OS: OSX

There is a difference when rendiring an optional item-set (zero to …) on a content type with max 1 and more than one items.

It would look much better if the outer border for the item set was alway rendered, even when is only one item-set allowed - as provided image, but without the add button on bottom of course.

<item-set name="imageSection">
  <label i18n="imageSection.label">Bildeseksjon</label>
  <occurrences minimum="0" maximum="1"/>
  <items>
    <input name="name" type="imageSelector">
      <occurrences minimum="0" maximum="2"/>
      <label>Bilder</label>
      <help-text>Bilde til siden, vises full bredde under topptekstfeltet</help-text>
      <config>
        <allowPath>/my-site</allowPath>
      </config>
    </input>
  </items>
</item-set>

If you put a second item-set inside the first one, padding is lost for the second item-set (if you have a max one item-set).
01


#2

Thanks for the input Preben, The frame was initially there, but was removed to reduce noise in the form based on feedback from customers.


#3

All right. Your customers are sick people. You should get rid of them and your product would be better. Ok. I will try do deal with it. Thanks


#4

This topic was automatically closed after 19 hours. New replies are no longer allowed.