Skip to content

Instantly share code, notes, and snippets.

@dpogni
Last active November 17, 2023 21:29
Show Gist options
  • Select an option

  • Save dpogni/c1e7d1bce61a68af8421c15faa507cce to your computer and use it in GitHub Desktop.

Select an option

Save dpogni/c1e7d1bce61a68af8421c15faa507cce to your computer and use it in GitHub Desktop.
AEM Flat Multifield
<images
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/multifield"
typeHint="String[]"
fieldLabel=""
fieldDescription="">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/pathbrowser"
fieldLabel=""
name="./images">
</field>
</images>
<sly data-sly-list="${properties.images}">
<sly data-sly-test.itemPath="${'item{0}' @ format=[itemList.index] }"/>
<img src="${itemPath}">
</sly>
<sly data-sly-list="${properties.images}">
<img src="${item}"/>
</sly>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment