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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

SOLVED

AEM 6.4, editable template - delete component from page level

shardenduj76728
Level 2
Level 2

Hi,

Is there any option/workaround to delete components which is configured via editable template?

Steps:

1) Create a editable template

2) Add a component say - 'Text' onto the said template.

3) Create a page using that template.

4) Now when author open newly created page he/she has option to author 'Text' component over there

5) Can author delete the 'Text' component from page? 

Thanks,

Shardendu

1 Accepted Solution
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor
3 Replies
Arun_Patidar
Correct answer by
Community Advisor
Community Advisor

yes, if  if you used component as part of initial not structure.

Page Templates - Editable

AEM Developer Learning : Dynamic (Editable) Templates in AEM 6.3 : Part-1

Thanks

Arun

shardenduj76728
Level 2
Level 2

Thanks Arun replying this !

But, if you use component as part of Initial, that component will not be available in older pages (already created pages)

any approach, adding component as part of structure and can be deleted on page level? I know in Adobe document they mentioned to use paragraph system....but I tried its not working.

Arun_Patidar
Community Advisor
Community Advisor

Hi,

You can write a utility to add that component in all the other pages using JCR API.

If you will add as a part of component then you can't delete it but you can create a component which will include the Text component & a flag to show/hide that component.