Community Advisor
June 26, 2025
Just use sling:resourceSuperType=<component path which has cq:dialog> on other component property.
Hi @kunalna1 ,
I would suggest to reuse tabs or containers of the dialog and include them via special resource type. See details below.
Firstly, you have to extract your reusable configuration to a separate place like: /apps/project/components/authoring/dialog/footer.
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:sling="http://sling.apache.org/jcr/sling/1.0"
jcr:primaryType="nt:unstructured">
<tab_configuration
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
</items>
</tab_configuration>
</jcr:root>
Secondly, you have to include extracted piece of configuration by using sling:resourceType="granite/ui/components/coral/foundation/include".
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" xmlns:granite="http://www.adobe.com/jcr/granite/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:sling="http://sling.apache.org/jcr/sling/1.0"
jcr:primaryType="nt:unstructured"
jcr:title="Footer"
sling:resourceType="cq/gui/components/authoring/dialog">
<content
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/container">
<items jcr:primaryType="nt:unstructured">
<tabs
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/tabs"
maximized="{Boolean}true">
<items jcr:primaryType="nt:unstructured">
<configurationtab
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/include"
path="/mnt/overlay/project/components/authoring/dialog/footer/tab_configuration"/>
</items>
</tabs>
</items>
</content>
</jcr:root>
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.