Expand my Community achievements bar.

Enhance your AEM Assets & Boost Your Development: [AEM Gems | June 19, 2024] Improving the Developer Experience with New APIs and Events
SOLVED

Sharing Dialog Between Components

Avatar

Level 1

I currently have navigation component that I need to split into three navigation sections. Unfortunately, the properties from the dialog will still be used in all sections. Is there anyway I can pull the properties from one component in another? I would like to avoid having duplicate dialogs.

1 Accepted Solution

Avatar

Correct answer by
Level 10

Hi,

If you want to pull the properties from one dialog of component to other, you can use in below way.

xtype: cqinclude
path: /libs/foundation/components/carousel/dialog/items/carousel/items/playSpeed.infinity.json

See this below community article which discusses your use case: 

//https://adobeaemtherightway.wordpress.com/2014/07/31/reusing-tabs-or-fields-from-an-existing-dialog/...

//https://helpx.adobe.com/experience-manager/kb/XtypeCqInclude.html

Also, look into this thread discusses the same:

//http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

Hope this helps!

~ Ratna.

View solution in original post

2 Replies

Avatar

Community Advisor

joey leung wrote...

I currently have navigation component that I need to split into three navigation sections. Unfortunately, the properties from the dialog will still be used in all sections. Is there anyway I can pull the properties from one component in another? I would like to avoid having duplicate dialogs.

 

You can use sling:resourceSuperType. Lets say if you want to use the componentA dialog in componentB. Then you would need to add the below property to the componentB node.

name: sling:resourceSuperType

type: String

Value: /apps/[YOURPROJECT]/components/content/componentA

Avatar

Correct answer by
Level 10

Hi,

If you want to pull the properties from one dialog of component to other, you can use in below way.

xtype: cqinclude
path: /libs/foundation/components/carousel/dialog/items/carousel/items/playSpeed.infinity.json

See this below community article which discusses your use case: 

//https://adobeaemtherightway.wordpress.com/2014/07/31/reusing-tabs-or-fields-from-an-existing-dialog/...

//https://helpx.adobe.com/experience-manager/kb/XtypeCqInclude.html

Also, look into this thread discusses the same:

//http://help-forums.adobe.com/content/adobeforums/en/experience-manager-forum/adobe-experience-manage...

Hope this helps!

~ Ratna.