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

עבודה זו בוצעה ברישיון של Creative Commons Attribution-Noncommercial-Share Alike 3.0 Unported License  הודעות המתפרסמות ב- Twitter™‎ ו- Facebook אינן מכוסות בתנאי Creative Commons.

הצהרות משפטיות   |   מדיניות פרטיות מקוונת