コミュニティアチーブメントバーを展開する。

Submissions are now open for the 2026 Adobe Experience Maker Awards.

Mark Solution

この会話は、活動がないためロックされています。新しい投稿を作成してください。

解決済み

Node

Avatar

Level 2

When we use multifield it creates node on /content/{page}/jcr:content/{component}/node.
Basically creates node under component.

Is There a way without using multifield we can create node under /content/{page}/jcr:content/{component}/node.
Out Of The BOX.

Because for eg:- i  have component which use 2 buttons 1> PrimaryButton . 2> SecondaryButton
as both are button they will have same props.

Is there a way without multifield i can create  node like this under the component.
/content/{page}/jcr:content/{component}/
                                                                +{primarybutton}
                                                                +{secondarybutton}

1 受け入れられたソリューション

Avatar

正解者
Level 2

i got one more solution Using
cq:include also we can achieve.
using namespace

user06615_0-1696577756429.png

this way we will not have create nodes again
@sherinregi 

 

元の投稿で解決策を見る

5 返信

Avatar

Community Advisor

Hey @user06615 

 

In Coral 3 Multifield the node is created for each multifield item added. May I know the exact use case for which you need 2 nodes for primaryButton and secondaryButton to be displayed under the component. 

 

Avatar

Level 2

Hi @ksh_ingole7 if i use multifield.
I will have to use List<Button> to consume data.

But i want to consume under primaryButton, secondaryButton objects.

Avatar

Community Advisor

Hi @user06615 

If you want to create under the component node you can try the below syntax in the component dialog .But one catch is you will have to define the properties for both the buttons as its not shared 

 

<primarybutton
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="button Text"
name="./primarybutton/ctaText"/>

<secondarybutton
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="button Text"
name="./secondarybutton/ctaText"/>

Avatar

Level 2

Thanks @sherinregi let me try.

Avatar

正解者
Level 2

i got one more solution Using
cq:include also we can achieve.
using namespace

user06615_0-1696577756429.png

this way we will not have create nodes again
@sherinregi