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
Bedrock Mission!

Learn more

View all

Sign in to view all badges

Touch UI Allowed Templates

Avatar

Level 2

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?

6 Replies

Avatar

Community Advisor

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!

Avatar

Community Advisor

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!

Avatar

Community Advisor

@btaymaz It should be applied to the jcr:content node of type cq:PageContent. Should not be applied to the folder.

See the screenshot below:

 

asutosh_jena_0-1621532563534.png