Expand my Community achievements bar.

SOLVED

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

Avatar

Community Advisor

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

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

1 Accepted Solution

Avatar

Correct answer by
Administrator

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

View solution in original post

5 Replies

Avatar

Level 10

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

Avatar

Community Advisor
        I want to know more about those wild card symbols like * and ? How they are used??

Avatar

Level 10

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/

Avatar

Community Advisor

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

Avatar

Correct answer by
Administrator

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