allowedPaths and allowedParents,allowedChildren in editable Templates
Hi,
do these properties allowedPaths and allowedParents,allowedChildren work on editable templates? If so, how do we use them in editable templates.
Hi,
do these properties allowedPaths and allowedParents,allowedChildren work on editable templates? If so, how do we use them in editable templates.
You can also use cq:allowedPaths property on the template
So your template will not be found while you create pages under /content/project/en/xyz/abc.
allowedPaths="[/content/entities(/.*)?]"
On the content the template must be allowed (using the cq:allowedTemplates property as show below
cq:allowedTemplates="[/conf/practice/settings/wcm/templates/(?!xf-).*]"
allowedParents
Regular expression patterns to determine the path(s) of components that are allowed as parent components.
allowedParents="[/apps/powerade/templates/homepage, /apps/powerade/templates/contentpage]" (don't work)
allowedChildren
Regular expression patterns to determine the path(s) of components that are allowed as child components.
Within CRX/DE under /conf/my-site/settings/wcm/templates/templateA (should be a cq:Template), add the property of String[] allowedChildren to "PATH_OF_YOUR_TEMPLATE". The value set should be the paths of a template that is allowed to be a child of this template.
allowedChildren="[/apps/powerade/templates/contentpage]"Enter your E-mail address. We'll send you an e-mail with instructions to reset your password.