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

Node name change with coral multifield in AEM 6.4

Avatar

Avatar
Validate 10
Level 2
deepak3344
Level 2

Likes

4 likes

Total Posts

42 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
Affirm 3
View profile

Avatar
Validate 10
Level 2
deepak3344
Level 2

Likes

4 likes

Total Posts

42 posts

Correct Reply

3 solutions
Top badges earned
Validate 10
Validate 1
Boost 3
Boost 1
Affirm 3
View profile
deepak3344
Level 2

05-04-2019

Hi All,

In 6.1, we customized multifield nodes to be saved as a particular name like slides-1, slides-2 etc. using following xml snippet.

<slides

    jcr:primaryType="nt:unstructured"

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

    class="list-option-carouselType-showhide-target full-width"

    eaem-nested=""

    fieldLabel=“Slides”

    showhidetargetvalue="[basic,large]">

    <field

        jcr:primaryType="nt:unstructured"

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

        name="./slides-$">

However for 6.4 to have rich text work with multifield, I needed to use coral multifield resource type and following xml snippet.

                                    <slides

                                        jcr:primaryType="nt:unstructured"

                                        sling:resourceType="granite/ui/components/coral/foundation/form/multifield"

                                        composite="{Boolean}true"

                                        class="list-option-carouselType-showhide-target full-width"

                                        eaem-nested=""

                                        fieldLabel="Slides"

                                        showhidetargetvalue="[basic,large]">

                                        <field

                                            jcr:primaryType="nt:unstructured"

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

                                            name="./slides">

Here multifield nodes are saved as item0, item1 etc. under jcr:content/slides.

Can anyone let me know with 6.4 coral multifield, how can we have custom multifield names like slides-1, slides-2, etc. instead of item0, item1, etc.

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile

Avatar
Give back 300
MVP
Gaurav-Behl
MVP

Likes

243 likes

Total Posts

1,145 posts

Correct Reply

281 solutions
Top badges earned
Give back 300
Give Back 50
Give Back 5
Give Back 3
Give Back 25
View profile
Gaurav-Behl
MVP

05-04-2019

I don't think that is feasible with OOB multifield code

Answers (1)

Answers (1)

Avatar

Avatar
Validate 25
Level 10
smacdonald2008
Level 10

Likes

1,406 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,406 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

05-04-2019

Gaurav is correct - OOTB - the coral MF works like node, node1 etc. See

Building Experience Manager Components using Granite/Coral Resource Types