Allow template for local sites | Community
Skip to main content
Level 6
February 20, 2024
Solved

Allow template for local sites

  • February 20, 2024
  • 1 reply
  • 767 views

Hi,

I have local country sites("/content/local-cuntry/en-us/about", "/content/local-cuntry/en-uk/about", "/content/local-cuntry/en-ae/about", "/content/local-cuntry/en-be/about" etc)

We have editable template /conf/local-cunry/settings/wcm/templates/test-template.

our requirement is to create pages under “content/local-cuntry/country-code/about” using the mentioned template. For this We need to allow the template

How we can achieve this using allowedpaths property on template

 

Thanks,

Vai

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 Kamal_Kishor

Hi @vani1012 ,

Can you please try with this.

allowedPaths="[/content/local-cuntry/.*/about/?.*]"

thanks.

1 reply

Imran Khan
Community Advisor
Community Advisor
February 20, 2024

@vani1012 In template .content.xml use allowedPaths property to allow template for particular path

allowedPaths="[/content/.*/product-refs/?.*,/content/.*/catalog-refs/?.*]"
Vani1012Author
Level 6
February 20, 2024

@imran__khan Can you please provide allowed path property for my path "content/local-cuntry/country-code/about"
Here we have different country codes like en-uk, en-us, en-be and so on

Kamal_Kishor
Community Advisor
Kamal_KishorCommunity AdvisorAccepted solution
Community Advisor
February 20, 2024

Hi @vani1012 ,

Can you please try with this.

allowedPaths="[/content/local-cuntry/.*/about/?.*]"

thanks.