Expand my Community achievements bar.

SOLVED

Converting static to editable templates - Page properties

Avatar

Level 5

Hi Team,

 

How to get initial page properties.

 

Page properties are saved under : /conf/project-name/settings/wcm/templates/template-name/initial/jcr:content

 

 

Topics

Topics help categorize Community content and increase your ability to discover relevant content.

6.5
1 Accepted Solution

Avatar

Correct answer by
Community Advisor

Initial Content is used to create default initial content when page is created and that is store at page level.The initial content can then be edited and removed by page authors.

 

No need to worry about initial content for static to dynamic template migration but define it for the new pages based on your requirement.

 

Initial page properties should be defined under : /conf/project-name/settings/wcm/templates/my-template/initial/jcr:content



Arun Patidar

View solution in original post

4 Replies

Avatar

Employee

The best route for designing editable template is to redesign the templates directly to be the editable template. You can check the document [1] as a reference for creating editable templates.

 

We recommend to create the page templates from scratch. This is the best route and what we suggest to go with to avoid downstream issues and unintended side-effects.

 

It is advised to upgrade the templates and the general process is:

 

The basic idea is that all the components that are declared inside the static template should become a component declared as a content structure under the "structure" child node of an editable template. All synthetic resources should also become an actual node of the "structure" aspect of the template or be relocated in the HTL template or JSP page of an instanced component.

 

 

[1]:- https://docs.adobe.com/content/help/en/experience-manager-65/developing/platform/templates/page-temp...

 

Avatar

Correct answer by
Community Advisor

Initial Content is used to create default initial content when page is created and that is store at page level.The initial content can then be edited and removed by page authors.

 

No need to worry about initial content for static to dynamic template migration but define it for the new pages based on your requirement.

 

Initial page properties should be defined under : /conf/project-name/settings/wcm/templates/my-template/initial/jcr:content



Arun Patidar

Avatar

Level 5
Hi Arun , Thanks for your reply ... We have initial page properties in editable template .. how to retrieve these properties .

Avatar

Community Advisor
Initial properties would be added automatically when you create a page, and you can access using Page API. But if page does not have properties then you you should get those properties in page. Reading directly is not advisable because initial is optional. Intentionally removing initial content from page will be available from conf. If you need same properties on all the pages then go for structure not from initial. Now come to your question - How to read initial content? you can use Node or JCR API to read any content in Java but make sure user should have access to read these nodes.


Arun Patidar