Expand my Community achievements bar.

SOLVED

allowedpath level filter

Avatar

Level 4

Hi,

I need to limit the creation of a template to this path /content/myproj/language/here and not as a child of "here"

I tried with all the possible combinations of: /content/myproj/(.*)/(.*)  but it doesn't work.

Can you help me? Thanks

1 Accepted Solution

Avatar

Correct answer by
Employee Advisor

Try the below expression for this use case - 

/content/myproj/([^/]*)/([^/]*)

View solution in original post

3 Replies

Avatar

Level 10

Correct me If I am wrong.

You want user should be able to create page using template at only this path /content/myproj/language/here

allowedPaths is multifield property. make sure you set it same way.

Set this allowedPaths of template to /content/myproj/language/here

Avatar

Level 4

Ok but "language" and "here" are variables =)

Avatar

Correct answer by
Employee Advisor

Try the below expression for this use case - 

/content/myproj/([^/]*)/([^/]*)