Touch UI Allowed Templates | Community
Skip to main content
btaymaz1
Level 2
May 20, 2021
Solved

Touch UI Allowed Templates

  • May 20, 2021
  • 2 replies
  • 1889 views

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?

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 aanchal-sikka

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

2 replies

Asutosh_Jena_
Community Advisor
Community Advisor
May 20, 2021

Hi @btaymaz1 

 

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!

btaymaz1
btaymaz1Author
Level 2
May 20, 2021
Tried no luck, Classic UI works fine
aanchal-sikka
Community Advisor
aanchal-sikkaCommunity AdvisorAccepted solution
Community Advisor
December 15, 2023

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

Aanchal Sikka