Locked & Unlocked Components

Avatar

Avatar

sai_santhosht50

Avatar

sai_santhosht50

sai_santhosht50

19-03-2021

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 🙂

 

component Editable templates policy

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar

asutosh_j3

Avatar

asutosh_j3

asutosh_j3

19-03-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-tem...

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!

Answers (0)