Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn More

View all

Sign in to view all badges

Experience Fragment customized field need to disable

Avatar

Avatar
Validate 1
Level 1
vivianseba
Level 1

Likes

0 likes

Total Posts

20 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back
View profile

Avatar
Validate 1
Level 1
vivianseba
Level 1

Likes

0 likes

Total Posts

20 posts

Correct Reply

0 solutions
Top badges earned
Validate 1
Give Back
View profile
vivianseba
Level 1

16-12-2020

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?

Accepted Solutions (0)

Answers (2)

Answers (2)

Avatar

Avatar
Validate 1
MVP
shelly-goel
MVP

Likes

158 likes

Total Posts

303 posts

Correct Reply

83 solutions
Top badges earned
Validate 1
Shape 1
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
MVP
shelly-goel
MVP

Likes

158 likes

Total Posts

303 posts

Correct Reply

83 solutions
Top badges earned
Validate 1
Shape 1
Ignite 1
Give Back 5
Give Back 3
View profile
shelly-goel
MVP

17-12-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

Avatar

Avatar
Validate 1
MVP
Umesh_Thakur
MVP

Likes

135 likes

Total Posts

146 posts

Correct Reply

49 solutions
Top badges earned
Validate 1
Applaud 25
Ignite 3
Ignite 1
Give Back 5
View profile

Avatar
Validate 1
MVP
Umesh_Thakur
MVP

Likes

135 likes

Total Posts

146 posts

Correct Reply

49 solutions
Top badges earned
Validate 1
Applaud 25
Ignite 3
Ignite 1
Give Back 5
View profile
Umesh_Thakur
MVP

16-12-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

 

hideResouce.png

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

Hope this will help.

Umesh Thakur