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

How to create templates with components already placed?

Avatar

Avatar
Boost 5
Level 2
vigiaemnewbie
Level 2

Likes

5 likes

Total Posts

32 posts

Correct Reply

0 solutions
Top badges earned
Boost 5
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile

Avatar
Boost 5
Level 2
vigiaemnewbie
Level 2

Likes

5 likes

Total Posts

32 posts

Correct Reply

0 solutions
Top badges earned
Boost 5
Validate 10
Validate 1
Ignite 5
Ignite 3
View profile
vigiaemnewbie
Level 2

21-05-2019

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?

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Give Back 5
Employee
Andrew_Khoury
Employee

Likes

75 likes

Total Posts

93 posts

Correct Reply

33 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile

Avatar
Give Back 5
Employee
Andrew_Khoury
Employee

Likes

75 likes

Total Posts

93 posts

Correct Reply

33 solutions
Top badges earned
Give Back 5
Give Back 3
Give Back 10
Give Back
Boost 50
View profile
Andrew_Khoury
Employee

21-05-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

Answers (0)