Skip to content

Instantly share code, notes, and snippets.

@fredrick-dominy
Created October 21, 2017 23:15
Show Gist options
  • Save fredrick-dominy/2a07b453812ec4370d69ffe8b16b8b5a to your computer and use it in GitHub Desktop.
Save fredrick-dominy/2a07b453812ec4370d69ffe8b16b8b5a to your computer and use it in GitHub Desktop.
TouchUI Multifield
<!-- Begin Multifield with ability for just one item -->
<fieldName
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/multifield"
class="full-width"
fieldDescription="Description of fieldset"
fieldLabel="Multifield Thing">
<field
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/fieldset"
acs-commons-nested="JSON_STORE"
name="./fieldName">
<layout jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"
method="absolute"/>
<items jcr:primaryType="nt:unstructured">
<column jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container">
<items jcr:primaryType="nt:unstructured">
<!-- Add items here -->
</items>
</column>
</items>
</field>
</fieldName>
<fieldNameFieldType
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/hidden"
acs-commons-nested="JSON_STORE"
name="./fieldName@TypeHint"
value="String[]"/>
<!-- End Multifield with ability for just one item -->
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment