Hiding a dialog checkbox when component used in a specific Template structure?
I have an experiencefragment component that has a checkbox. I want to show this checkbox by default in the editor dialog box and hide it only when this experiencefragment component is used in a structure for a specific template.
The problem is that I cannot disable this checkbox using the config provided here.
This is the template structure:
<root
jcr:primaryType="nt:unstructured"
sling:resourceType="xxx/components/structure/container">
<header
jcr:primaryType="nt:unstructured"
sling:resourceType="xxx/components/structure/header/feader"
editable="{Boolean}true"/>
<staging
jcr:primaryType="nt:unstructured"
sling:resourceType="xxx/components/content/experiencefragment"
editable="{Boolean}true"
cq:showOnCreate="{Boolean}false"/>
<main
This is the experiencefragment component _cq_dialog
<logout
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
name="./logoutPage"
text="Einsatz auf Logout Page"
value="{Boolean}true"
uncheckedValue="{Boolean}false"
checked="{Boolean}false"
cq:showOnCreate="{Boolean}true"/>