Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Child element for a field in a touch ui dialog?

Adobeaspirant
Level 4
Level 4

1625212_pastedImage_1.png

I am trying to set "Set children" node a child node for "Title". I will be reusing the link type, director and link container at different places and everywhere i am trying to use them as child elements. Please suggest the best way to do that?

<Title

        jcr:primaryType="nt:unstructured"

        sling:resourceType="granite/ui/components/foundation/form/textfield"

         fieldDescription="Add title here."

         fieldLabel=" Title"

         name="./Title" />

        <setChildren

                <items jcr:primaryType="nt:unstructured">

                  <linkType

                           jcr:primaryType="nt:unstructured"

                           sling:resourceType="granite/ui/components/foundation/include"

                           path="/****/linkType"/>

                 <Container

                      jcr:primaryType="nt:unstructured"

                      sling:resourceType="granite/ui/components/foundation/include"

                      path="/****//directorContainer"/>

                  <Container

                      jcr:primaryType="nt:unstructured"

                      sling:resourceType="granite/ui/components/foundation/include"

                      path="/****//linkContainer"/>

                  </items>

</setChildren>

1 Accepted Solution
smacdonald2008
Correct answer by
Level 10
Level 10

To use a resource type defined somewhere in the AEM JCR in a touch Ui component dialog  - you can use Include — Granite UI 1.0 documentation

Looks like you are doing this. This is the way to use this granite type.

View solution in original post

1 Reply
smacdonald2008
Correct answer by
Level 10
Level 10

To use a resource type defined somewhere in the AEM JCR in a touch Ui component dialog  - you can use Include — Granite UI 1.0 documentation

Looks like you are doing this. This is the way to use this granite type.

View solution in original post