AEM 6.4, editable template - delete component from page level | Community
Skip to main content
shardenduj76728
Level 2
Aug 10, 2018 7:51 PM UTC
Solved

AEM 6.4, editable template - delete component from page level

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.
arunpatidar
arunpatidarAccepted solution
New Participant
Aug 10, 2018 9:37 PM UTC

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

3 replies

arunpatidar
New Participant
Aug 11, 2018 11:49 AM UTC

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.

Translate
Arun Patidar
shardenduj76728
Level 2
Aug 10, 2018 10:20 PM UTC

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.

Translate
arunpatidar
arunpatidarAccepted solution
New Participant
Aug 10, 2018 9:37 PM UTC

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

Translate
Arun Patidar