Hi Guys,
We have a template A which can be used anywhere with allowed path /content/project/en(/.*)?
but it should not be allowed in /content/project/en/xyz/abc/
Please help me to figure this out guys.
Solved! Go to Solution.
Views
Replies
Total Likes
You can override it by the property cq:allowedTemplates in /content/project/en/xyz/abc/
So, it first checks for cq:allowedTemplates and if it doesnt have that, then it looks out for cq:allowedPaths.
This is an interesting use case. If you specify this value for allowedPaths:
/content/project/en/[^/]+(/.*)?
Not sure if there is a way to exclude:
content/project/en/xyz/abc/
(if there is - its not documented)
There is no property named disallowPaths of type String[].
Views
Replies
Total Likes
You can override it by the property cq:allowedTemplates in /content/project/en/xyz/abc/
So, it first checks for cq:allowedTemplates and if it doesnt have that, then it looks out for cq:allowedPaths.
You can also use cq:allowedPath property on the template
^(?!/content/project/en/xyz/abc?:/|$))/content/*(/.*)
So your template will not be found while you create pages under /content/project/en/xyz/abc.
Views
Replies
Total Likes
Please try to replace allowed path /content/project/en(/.*)? with /content/project/en(/(?!xyz/abc/).*)? .
Views
Likes
Replies
Views
Like
Replies