How to reuse existing dialog elements in other dialogs

Question

How is it possible to reuse existing dialog elements such as tabs in other dialogs?

Answer, Resolution

For this use-case, a specific widget with the label cqinclude exists which allows for inclusion of existing dialog elements in other dialog definitions. The generic JSON format is used on the client side to construct the actual dialog.

Following is an example which uses the cqinclude widget to include an existing tab from an existing dialog:

{ 
  "jcr:primaryType": "cq:Widget", 
  "xtype": "cqinclude", 
  "path": "/libs/replication/components/agent/tab_extended.infinity.json" 
} 

The path property needs to point to a dialog-resource that is to be included in JSON format.
The above example was taken from the reverse-replication agent component (please refer to the /libs/replication/components/revagent node).

Applies to

CQ5.x

 Adobe

쉽고 빠르게 지원 받기

신규 사용자이신가요?

Adobe MAX 2024

Adobe MAX
크리에이티비티 컨퍼런스

10월 14~16일 마이애미 비치 및 온라인

Adobe MAX

크리에이티비티 컨퍼런스

10월 14~16일 마이애미 비치 및 온라인

Adobe MAX 2024

Adobe MAX
크리에이티비티 컨퍼런스

10월 14~16일 마이애미 비치 및 온라인

Adobe MAX

크리에이티비티 컨퍼런스

10월 14~16일 마이애미 비치 및 온라인