Last active
November 17, 2023 21:29
-
-
Save dpogni/c1e7d1bce61a68af8421c15faa507cce to your computer and use it in GitHub Desktop.
AEM Flat Multifield
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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> |
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
| <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