reuse cq:dialog in AEM cloud | Community
Skip to main content
Level 3
February 13, 2023
Solved

reuse cq:dialog in AEM cloud

  • February 13, 2023
  • 3 replies
  • 1283 views

Hi Team,

I want to reuse the existing component cq:dialog(multiple fields at one place) into another dialog. May I know is there any way to do this?

 

other component dialog path: /apps/aaa/components/bbb/cq:dialog/content/items/tabs/items/test/items/columns/items/column/items/delete

path- /apps/xxx/components/yyy/cq:dialog

resourcetype - granite/ui/components/coral/foundation/include

 

Thanks in advance!

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 Prince_Shivhare

Hey,

 

There are two approaches which depends on your requirement -

1. Extending the full dialog

2. Extending only some fields

 

1. Extending the full dialog - In this case, you can use the slingResourceSuperType property to extend.

2. Extending only some fields - You can create some global reusable fields and use the property "path" to extend it.

 

Let me know if this helps.

 

Thanks!

3 replies

BrianKasingli
Community Advisor and Adobe Champion
Community Advisor and Adobe Champion
February 13, 2023

Hi @lakshmi9 , you can create a centralized TouchUI namespace for where you will re-use touchUI configurations. For example, under this path, /apps/sourcedcodeaem/dialogs/content/common/fields/_cq_dialog/.content.xml. To learn more you can go into this URL and have a read How to Write AEM Reusable Touch UI, Granite UI Configuration - Sourced Code


Prince_Shivhare
Community Advisor
Prince_ShivhareCommunity AdvisorAccepted solution
Community Advisor
February 14, 2023

Hey,

 

There are two approaches which depends on your requirement -

1. Extending the full dialog

2. Extending only some fields

 

1. Extending the full dialog - In this case, you can use the slingResourceSuperType property to extend.

2. Extending only some fields - You can create some global reusable fields and use the property "path" to extend it.

 

Let me know if this helps.

 

Thanks!