Hi,
I have noticed the following problem :
When we create a new page, the property “cq:allowedTemplates” with value from the template definition is created.
If the value of the property changes in template definitions, pages which are already created are not updated.
Do we have a solution for this?
We are using AEM 6.3 version
Thanks
Souvik
Solved! Go to Solution.
Hi Souvik,
I think once the page is created from static template you can't update structure/properties.
You may need to write utility to update cq:allowedTemplates property in page.
You can take a reference from below tool, you can create something like GUI tool below or just use Node API to update properties
Resource Type/Template Updater
Thanks
Arun
Hi Souvik,
I think once the page is created from static template you can't update structure/properties.
You may need to write utility to update cq:allowedTemplates property in page.
You can take a reference from below tool, you can create something like GUI tool below or just use Node API to update properties
Resource Type/Template Updater
Thanks
Arun
Thank you for your response.
What about dynamic (editable) templates? How can we modify the list of allowed child templates for existing pages if they were created via Editable templates?
Best regards,
Ivan
Views
Replies
Total Likes
Hi,
you can add allowedChildren property in template and value is regular expression patterns to determine the path(s) to templates allowed as child templates.
e.g. I added allowedChildren= /conf/we-retail/settings/wcm/templates/hero-page in product-page template,
/conf/we-retail/settings/wcm/templates/product-page
Views
Likes
Replies
Views
Likes
Replies
Views
Likes
Replies