Touch UI Dialog - include part of another dialog
I'm currently trying to reuse some parts of existing dialogs with mixed results. It seems depending on which level of the existing dialog I include it either works or doesn't and I'm not really sure why. I should note that this is on Adobe 6.1, SP2, CFP11
Existing Dialog
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="nt:unstructured"
jcr:title="Lede Tile"
sling:resourceType="cq/gui/components/authoring/dialog"><content
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container"><layout
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/><items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container"><items jcr:primaryType="nt:unstructured">
<headlineGroup
jcr:primaryType="nt:unstructured"
jcr:title="Tile Type Headline Text"
sling:resourceType="granite/ui/components/foundation/form/fieldset"><items jcr:primaryType="nt:unstructured">
<article
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
cq-msm-lockable="./ns.headlineArticle"
fieldLabel="Article"
name="./ns.headlineArticle"/><default
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
cq-msm-lockable="./ns.headlineGeneric"
fieldDescription="This headline is used for generic pages that don't fit one of the other headline types"
fieldLabel="Default"
name="./ns.headlineGeneric"/><event
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
cq-msm-lockable="./ns.headlineEvent"
fieldLabel="Event"
name="./ns.headlineEvent"/><product
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
cq-msm-lockable="./ns.headlineProduct"
fieldLabel="Product"
name="./ns.headlineProduct"/><recipe
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
cq-msm-lockable="./ns.headlineRecipe"
fieldLabel="Recipe"
name="./ns.headlineRecipe"/><service
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
cq-msm-lockable="./ns.headlineService"
fieldLabel="Service"
name="./ns.headlineService"/><serviceBanner
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
cq-msm-lockable="./ns.serviceBanner"
fieldLabel="Service Banner"
name="./ns.serviceBanner"/><video
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/form/textfield"
cq-msm-lockable="./ns.headlineVideo"
fieldLabel="Video"
name="./ns.headlineVideo"/></items>
</headlineGroup>
</items>
</column>
</items>
</content>
</jcr:root>
Then the following works:
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="nt:unstructured"
jcr:title="Search Results"
sling:resourceType="cq/gui/components/authoring/dialog"><content
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container"><layout
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/><items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container"><items jcr:primaryType="nt:unstructured">
<headlineGroup
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/include"
path="test/components/content/lede-tile/dialogshared/content/items/column/items/headlineGroup"/></items>
</column>
</items>
</content>
</jcr:root>
But lastly the below dialog will not import the fields from the original and I'm not sure why.
<?xml version="1.0" encoding="UTF-8"?>
<jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0"
jcr:primaryType="nt:unstructured"
jcr:title="Search Results"
sling:resourceType="cq/gui/components/authoring/dialog"><content
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container"><layout
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/layouts/fixedcolumns"/><items jcr:primaryType="nt:unstructured">
<column
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/container"><items jcr:primaryType="nt:unstructured">
<headlineGroup
jcr:primaryType="nt:unstructured"
jcr:title="Search Result Type Headline Text"
sling:resourceType="granite/ui/components/foundation/form/fieldset"><items
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/foundation/include"
path="test/components/content/lede-tile/dialogshared/content/items/column/items/headlineGroup/items"/></headlineGroup>
</items>
</column>
</items>
</content>
</jcr:root>