cq:allowedTemplates: "/conf/acme/settings/wcm/templates/(?!page-).*"
When I create a new page I see all templates in Touch UI. Classic UI works fine.
How can I fix Touch UI?
Solved! Go to Solution.
Views
Replies
Total Likes
In a site structure, we should create a hierarchy of cq:Pages. Folders should not be used here
This would assure cq:allowedTemplates works as expected
Hi @btaymaz
If you want to allow only templates within your project i.e. acme then use the below rules:
cq:allowedTemplates of type String[] with value as /conf/acme/settings/wcm/templates/.*
Thanks!
Hi @btaymaz
Which node you are setting this property?
Let's say you have a website as /content/acme and under acme you want to create pages using the template, then you need to add the property to /content/acme/jcr:content node.
I Just tried and it works!
In a site structure, we should create a hierarchy of cq:Pages. Folders should not be used here
This would assure cq:allowedTemplates works as expected
Views
Likes
Replies
Views
Likes
Replies