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

How to create templates with components already placed?

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.
akhoury
akhouryAccepted solution
Employee
May 21, 2019 12:21 PM UTC

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
akhouryAccepted solution
Employee
May 21, 2019 12:21 PM UTC

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

Translate