Your achievements

Level 1

0% to

Level 2

Tip /
Sign in

Sign in to Community

to gain points, level up, and earn exciting badges like the new
Bedrock Mission!

Learn more

View all

Sign in to view all badges

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
Level 10

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
Level 10

Try the below expression for this use case - 

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