AEM 6.4, editable template - delete component from page level | Community
Skip to main content
shardenduj76728
Level 2
August 10, 2018
Solved

AEM 6.4, editable template - delete component from page level

  • August 10, 2018
  • 3 replies
  • 3164 views

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

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

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

3 replies

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
August 10, 2018

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

Arun Patidar
shardenduj76728
Level 2
August 10, 2018

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.

arunpatidar
Community Advisor
Community Advisor
August 11, 2018

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.

Arun Patidar