Expand my Community achievements bar.

SOLVED

AEM 6.4, editable template - delete component from page level

Avatar

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

Avatar

Correct answer by
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



Arun Patidar

View solution in original post

3 Replies

Avatar

Correct answer by
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



Arun Patidar

Avatar

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.

Avatar

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.



Arun Patidar