Editable template

Avatar

Avatar
Boost 1
Level 1
hptarora
Level 1

Like

1 like

Total Posts

20 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

20 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
Give Back 10
MVP
Varun_Shakya
MVP

Likes

124 likes

Total Posts

97 posts

Correct reply

24 solutions
Top badges earned
Give Back 10
Ignite 3
Ignite 1
Give Back 5
Give Back 3
View profile

Avatar
Give Back 10
MVP
Varun_Shakya
MVP

Likes

124 likes

Total Posts

97 posts

Correct reply

24 solutions
Top badges earned
Give Back 10
Ignite 3
Ignite 1
Give Back 5
Give Back 3
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
Boost 250
MVP
Nikhil-Kumar
MVP

Likes

251 likes

Total Posts

262 posts

Correct reply

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

Avatar
Boost 250
MVP
Nikhil-Kumar
MVP

Likes

251 likes

Total Posts

262 posts

Correct reply

38 solutions
Top badges earned
Boost 250
Validate 1
Ignite 3
Ignite 1
Give Back 5
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