AEM HTL Multifield Iteration Issue - Dialog seems correct but no rendering
Hello everyone,
I'm working on an AEM component and have configured a multifield dialog. My goal is to iterate over the items added in this multifield using HTL.
The data appears to be saving correctly in CRXDE Lite under the component's node in a structure like /path/to/component/tiles/item0, /path/to/component/tiles/item1, etc., with properties like itemTitle on each itemX node.
Here is the relevant part of my dialog XML:
<tiles
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
composite="{Boolean}true"
fieldLabel="Tiles"
fieldDescription="Click 'Add field' to add the details for a new tile.">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/fieldset"
name="./tiles">
<layout
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/>
<items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container">
<items jcr:primaryType="nt:unstructured">
<title
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="Title"
name="itemTitle"/>
<!-- Other fields would go here -->
</items>
</column>
</items>
</field>
</tiles>However, I'm unable to get anything to render in my HTL file. I've tried various approaches, but nothing seems to work.
Can someone please provide the correct HTL syntax to iterate over these multifield items? I'm trying to access the itemTitle property for each one.
I'd prefer a solution that doesn't require a Sling Model like using ${properties}
Thank you in advance for any help!