Hide inherited page tab in 6.5
The inherited page properties tab is appearing in the current page properties. We have to hide it. Please suggest.
The inherited page properties tab is appearing in the current page properties. We have to hide it. Please suggest.
Hi @dinu_arya
We need to use Sling Resource Merger Properties of AEM. If we need to hide a tab on a child page component, use sling:hideResource="{Boolean}true" property on the child page component tabs.
Suppose if we have tab called custom-tab on parent node.
<custom-tab
jcr:primaryType="nt:unstructured"
jcr:title="Custom Tab"
sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns">
<custom-property
jcr:primaryType="nt:unstructured"
sling:resourceType="granite/ui/components/coral/foundation/form/textfield"
fieldLabel="Custom Property"
name="./customProperty"/>
</custom-tab>
and If we don't want this tab to appear on inherited page components, add sling:hideResource="{Boolean}true" like below
<custom-tab
jcr:primaryType="nt:unstructured"
jcr:title="Custom Tab"
sling:hideResource="{Boolean}true"
sling:resourceType="granite/ui/components/coral/foundation/fixedcolumns">
</custom-tab>
Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.