Wild cards in allowedpaths /content(/.*)? | Community
Skip to main content
Mani_kumar_
Community Advisor
Community Advisor
January 14, 2016
Solved

Wild cards in allowedpaths /content(/.*)?

  • January 14, 2016
  • 5 replies
  • 3134 views

Can anyone explain me the wildcards in allowedpaths when we use it for template creation and what exactly this path will do

/content(.*/)?/test(.*)?

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 kautuk_sahni

Hi

As mentioned by Praveen, these were regular expression.

To learn Regular expression, please follow :- http://regexone.com/

I hope this would help.

Thanks and Regards

Kautuk Sahni

5 replies

edubey
Level 10
January 14, 2016

This actually defines the regular expression of a path where page can be created using this template.

If allowedPath is /content/abc for a template A,

then using template A you can only create pages where its allowed which is /content/abc.

You can define multiple allowed paths with regular expression.

Have a look @ documenttation

https://docs.adobe.com/docs/en/cq/5-6-1/developing/templates.html

Mani_kumar_
Community Advisor
Community Advisor
January 14, 2016
        I want to know more about those wild card symbols like * and ? How they are used??
edubey
Level 10
January 14, 2016

I would recommend you to learn regular expressions (regex)  and how they are used.

This is one good site I personally follow : http://regexr.com/

Mani_kumar_
Community Advisor
Community Advisor
January 14, 2016

edubey wrote...

I would recommend you to learn regular expressions (regex)  and how they are used.

This is one good site I personally follow : http://regexr.com/

 

Thank You

kautuk_sahni
Community Manager
kautuk_sahniCommunity ManagerAccepted solution
Community Manager
January 14, 2016

Hi

As mentioned by Praveen, these were regular expression.

To learn Regular expression, please follow :- http://regexone.com/

I hope this would help.

Thanks and Regards

Kautuk Sahni

Kautuk Sahni