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

Editable template

Avatar

Avatar
Boost 1
Level 1
hptarora
Level 1

Like

1 like

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Validate 1
View profile

Avatar
Boost 1
Level 1
hptarora
Level 1

Like

1 like

Total Posts

13 posts

Correct Reply

0 solutions
Top badges earned
Boost 1
Validate 1
View profile
hptarora
Level 1

27-08-2020

Hi,

 

I have couple of static templates working for site. Now I want one more template and I created editable template.

Now the problem is, I set allowed template path in site's property and when I create page under site, it only showing editable template and not showing the static template.

Is there a way I can show both static and editable template for selection at the time of page creation?

Any help would be appreciated.

 

Thanks

Accepted Solutions (1)

Accepted Solutions (1)

Avatar

Avatar
Ignite 1
MVP
Varun_Shakya
MVP

Likes

107 likes

Total Posts

85 posts

Correct Reply

20 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back
Boost 50
View profile

Avatar
Ignite 1
MVP
Varun_Shakya
MVP

Likes

107 likes

Total Posts

85 posts

Correct Reply

20 solutions
Top badges earned
Ignite 1
Give Back 5
Give Back 3
Give Back
Boost 50
View profile
Varun_Shakya
MVP

27-08-2020

Add cq:allowedTemplate property in your root page and add path for both of your static and editable templates as given below

cq:allowedTemplates="[/conf/yourprojectname/settings/wcm/templates/.*,/apps/yourprojectname/templates/.*]"

Answers (1)

Answers (1)

Avatar

Avatar
Validate 1
MVP
Nikhil-Kumar
MVP

Likes

240 likes

Total Posts

253 posts

Correct Reply

38 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Validate 1
MVP
Nikhil-Kumar
MVP

Likes

240 likes

Total Posts

253 posts

Correct Reply

38 solutions
Top badges earned
Validate 1
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile
Nikhil-Kumar
MVP

27-08-2020

@hptarora 

I am loading both templates (static and editable) in same the same site.

Please update the static page's component with property allowedPaths -- (String[]) -- /content/.+   

Thanks,
Nikhil