Locked & Unlocked Components | Community
Skip to main content
sai_santhosht50
Level 2
March 19, 2021
Solved

Locked & Unlocked Components

  • March 19, 2021
  • 1 reply
  • 2709 views

Hi All,

I have an issue with my editable template with locked/unlocked components.

 

case 1 :- In an editable template, i have authored a locked component and added some text in its policy.

Intially component - locked, parsys also will be locked. Now i have created a page in which the text is not reflecting at all.

 

case 2 :- In an editable template, this time i have added two components. one is locked , second one is unlocked & parsys will be in locked state . I have authored the policy for the components with some text. Now if i create a page then the 2 components are reflecting fine.

 

so, the question here,

 Is it mandatory to have atleast one unlocked component in the parsys along with locked comp. in order to reflect on the page??

 

Thanks in advance 🙂

 

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 Asutosh_Jena_

Hi @sai_santhosht50 

 

As per editable template policy, once a component that already contains content is unlocked, this content will be moved to the initial branch and the editable property is set to true.
Initial content is something which will be shown on a page upon a page creation. So you should unlock the component to make it reflect on the page.

 

The complete article is nicely written here:

https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/templates/page-templates-editable.html?lang=en#resultant-content-pages

http://www.sgaemsolutions.com/2017/09/dynamic-editable-templates-in-aem-63.html

http://www.sgaemsolutions.com/2017/09/dynamic-editable-templates-in-aem63.html

 

Hope this helps!

Thanks!

1 reply

Asutosh_Jena_
Community Advisor
Asutosh_Jena_Community AdvisorAccepted solution
Community Advisor
March 19, 2021

Hi @sai_santhosht50 

 

As per editable template policy, once a component that already contains content is unlocked, this content will be moved to the initial branch and the editable property is set to true.
Initial content is something which will be shown on a page upon a page creation. So you should unlock the component to make it reflect on the page.

 

The complete article is nicely written here:

https://experienceleague.adobe.com/docs/experience-manager-65/developing/platform/templates/page-templates-editable.html?lang=en#resultant-content-pages

http://www.sgaemsolutions.com/2017/09/dynamic-editable-templates-in-aem-63.html

http://www.sgaemsolutions.com/2017/09/dynamic-editable-templates-in-aem63.html

 

Hope this helps!

Thanks!