Skip to main content
Level 4
Jan 14, 2016 11:09 AM UTC
Solved

allowedpath level filter

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

This post is no longer active and is closed to new replies. Need help? Start a new post to ask your question.
Kunal_Gaba_
Kunal_Gaba_Accepted solution
New Member
Jan 14, 2016 7:59 PM UTC

Try the below expression for this use case - 

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

3 replies

edubey
Level 10
Jan 14, 2016 11:15 AM UTC

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

Translate
Level 4
Jan 14, 2016 12:11 PM UTC

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

Translate
Kunal_Gaba_
Kunal_Gaba_Accepted solution
New Member
Jan 14, 2016 7:59 PM UTC

Try the below expression for this use case - 

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