Experience Fragment customized field need to disable | Community
Skip to main content
Level 2
December 16, 2020
Question

Experience Fragment customized field need to disable

  • December 16, 2020
  • 2 replies
  • 2790 views

Hi,

I have overlay the experience fragment properties from this path(/libs/cq/experience-fragments/components/experiencefragment/cq:dialog/content/items/tabs/items/basic)  to our project structure and introduce the new customized checkbox field in basic tab. So the checkbox available while we creating the experience fragments and it's available for all the experience fragments templates.

Could you please suggest, how to disable this customized checkbox field to some other experience fragment templates?

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.

2 replies

Umesh_Thakur
Community Advisor
Community Advisor
December 17, 2020

Hi @vivianseba,

If you are not using main xfpage component as parent of the rest of templates then you can :

1.create one dialog in the child page component and add the field that you wanted to hide and

2. then add one property sling:hideResource = true.

this will hide that particular filed in the child dialog as in below image

 

If you are using one stand alone page component then you can simply skip the filed.

Hope this will help.

Umesh Thakur

shelly-goel
Adobe Employee
Adobe Employee
December 18, 2020

Hi @vivianseba 

 

I would suggest to use sling:resourceSuperType=cq/experience-fragments/components/xfpage on all the custom XF templates (page components) and introduce the new customized checkbox field under that specific template (xf page component). Considering the custom xf page components are created under /apps/<your project>/components structure.

 

Thanks

Level 2
December 18, 2020
Thanks Shelly and The customized checkbox is available for the all the template while we creating the experience fragment ,But it should available for only with empty template.