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

Получете помощ по-бързо и по-лесно

Нов потребител?