Editable Template AEM 6.4 | Community
Skip to main content
Level 2
September 16, 2018
Solved

Editable Template AEM 6.4

  • September 16, 2018
  • 1 reply
  • 1718 views

Hi All,

I am facing one issue that while creating Editable template and editing it how to include initial content in my template. I followed the same steps mentioned in few articles over net. I tried copy pasting initial node from section page template of we-retail to my template but it didn't work. can someone help me to include initial content.

Second is the observation that suppose i have initial content in my editable template using that i created few page. Later i added few component in my initial content in editable template. Now i created new page the new component added is visible in new page but not in previously created pages. So is it the expected behaviour?

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 arunpatidar

Hi,

There is no need to copy structure node for initial. Initial content are optional and content authors can remove content if not required but from structure they can't. So having same content/node for initial and structure makes no sense for initial.

If you want to add content for initial you can do it from template editor.

  1. Go to structure mode and unlock structure components
  2. Switch to initial content and add author initial content

For second observation - this is the behaviour. when you create any page from template, a node structure is created for content node based on template, if you modify the template it won't impact the page until it is structure change. So the changes will be reflecting only for new pages.

In your case you can write a script to modify existing pages with new initial content.

Thanks
Arun

1 reply

arunpatidar
Community Advisor
arunpatidarCommunity AdvisorAccepted solution
Community Advisor
September 17, 2018

Hi,

There is no need to copy structure node for initial. Initial content are optional and content authors can remove content if not required but from structure they can't. So having same content/node for initial and structure makes no sense for initial.

If you want to add content for initial you can do it from template editor.

  1. Go to structure mode and unlock structure components
  2. Switch to initial content and add author initial content

For second observation - this is the behaviour. when you create any page from template, a node structure is created for content node based on template, if you modify the template it won't impact the page until it is structure change. So the changes will be reflecting only for new pages.

In your case you can write a script to modify existing pages with new initial content.

Thanks
Arun

Arun Patidar