How to create templates with components already placed? | Community
Skip to main content
vigiaemnewbie
Level 2
May 21, 2019
Solved

How to create templates with components already placed?

  • May 21, 2019
  • 1 reply
  • 1738 views

I need to create a template which when used to create a page, will already have certain components placed in the page and some content will be authored. Once the page is created, the author should be able to author the existing components, delete them or add new components. Is there a way to achieve this without dynamic/editable templates? Is there a way developer can create a static template with some preexisting components and author can later modify the page created from this template?

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 akhoury

Hi vigiaemnewbie​, this concept is the whole idea behind editable templates, to allow authors to manage the templates.  However, you could follow these steps for a developer to create initial content for a static template:

1. Create a page, add whatever content you like.

2. Create a new template node under your application folder /apps/myapp/templates/newtemplate

3. Copy the jcr:content node of that page under the template node

1 reply

akhoury
Adobe Employee
akhouryAdobe EmployeeAccepted solution
Adobe Employee
May 21, 2019

Hi vigiaemnewbie​, this concept is the whole idea behind editable templates, to allow authors to manage the templates.  However, you could follow these steps for a developer to create initial content for a static template:

1. Create a page, add whatever content you like.

2. Create a new template node under your application folder /apps/myapp/templates/newtemplate

3. Copy the jcr:content node of that page under the template node