Render condition for page dialog property
Hello Team,
I have a page property checkbox, that should be visible only in my language pages.
example:
/content/abc/us/en
/content/abc/us/fr
/content/abc/gb/en
It should not be visible for other projects. (Since the editable template is used for other projects too)
property should be visible in 4th node. i.e /content/abc/us/en not in other child pages. example: /content/abc/us/en/home/service
I tried this logic. But this is failing. Can someone help me?
<isMyCheckbox
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/checkbox"
text="Is ABC"
name="./istesting"
value="{Boolean}true"
uncheckedValue="{Boolean}false"
checked="{Boolean}false">
<granite:rendercondition
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/renderconditions/and">
<conditions
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/renderconditions/property"
propertyName="path"
propertyValue="/content/abc"/>
<conditions
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/renderconditions/property"
propertyName="pathSegmentCount"
propertyValue="4"/>
</granite:rendercondition>
</isMyCheckbox>
cc @arunpatidar @amitvishwakarma @sureshdhulipudi @raja_reddy