Child element for a field in a touch ui dialog?

Avatar

Avatar
Validate 1
Level 3
Adobeaspirant
Level 3

Likes

21 likes

Total Posts

59 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile

Avatar
Validate 1
Level 3
Adobeaspirant
Level 3

Likes

21 likes

Total Posts

59 posts

Correct reply

0 solutions
Top badges earned
Validate 1
Boost 5
Boost 3
Boost 10
Boost 1
View profile
Adobeaspirant
Level 3

19-11-2018

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>

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,409 likes

Total Posts

12,671 posts

Correct reply

2,278 solutions
Top badges earned
Validate 25
Validate 10
Validate 1
Give back 900
Give back 600
View profile
smacdonald2008
Level 10

19-11-2018

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.

Answers (0)