Skip to main content
Mani_kumar_
Community Advisor
Community Advisor
Jan 14, 2016 7:36 AM UTC
Solved

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

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.
kautuk_sahni
kautuk_sahniAccepted solution
Level 9
Jan 14, 2016 9:19 AM UTC

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

5 replies

edubey
Level 10
Jan 14, 2016 7:48 AM UTC

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

Translate
Mani_kumar_
Community Advisor
Community Advisor
Jan 14, 2016 8:47 AM UTC
        I want to know more about those wild card symbols like * and ? How they are used??
Translate
edubey
Level 10
Jan 14, 2016 8:50 AM UTC

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/

Translate
Mani_kumar_
Community Advisor
Community Advisor
Jan 14, 2016 8:57 AM UTC

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

Translate
kautuk_sahni
kautuk_sahniAccepted solution
Level 9
Jan 14, 2016 9:19 AM UTC

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

Translate
Kautuk Sahni