Sharing Dialog Between Components | Community
Skip to main content
dzoyee
New Participant
April 3, 2017
Solved

Sharing Dialog Between Components

  • April 3, 2017
  • 2 replies
  • 1031 views

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.

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Best answer by Ratna_Kumar

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/comment-page-1/

//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-manager.topic.html/forum__0j5u-is_there_a_waytoef.html

Hope this helps!

~ Ratna.

2 replies

Ratna_Kumar
Ratna_KumarAccepted solution
New Participant
April 3, 2017

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/comment-page-1/

//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-manager.topic.html/forum__0j5u-is_there_a_waytoef.html

Hope this helps!

~ Ratna.

Singaiah_Chintalapudi
New Participant
April 3, 2017

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