Editable template | Community
Skip to main content
Level 3
August 27, 2020
Solved

Editable template

  • August 27, 2020
  • 2 replies
  • 1040 views

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

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 Varun_Shakya

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/.*]"

2 replies

Nikhil-Kumar
Community Advisor
Community Advisor
August 27, 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


Varun_Shakya
Community Advisor
Varun_ShakyaCommunity AdvisorAccepted solution
Community Advisor
August 27, 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/.*]"