Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
BedrockMission!

Learn more

View all

Sign in to view all badges

SOLVED

Locked & Unlocked Components

sai_santhosht50
Level 2
Level 2

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
1 Accepted Solution
asutosh_jena
Correct answer by
Community Advisor
Community Advisor

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!

View solution in original post

1 Reply
asutosh_jena
Correct answer by
Community Advisor
Community Advisor

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!

View solution in original post