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 日邁阿密海灘和線上