Allowed templates for editable templates
Hello everyone,
I have following scenario:
Here my templates configuration
/conf/<mybrand>/settings/wcm
- template-type:
- content-consumer-template-type
- content-business-template-type
- structure-consumer-template-type
- template:
- structure-business-template
- cq:allowedTemplates: content-business-templateA
- content-business-templateA
- cq:allowedTemplates: content-business-templateA
- structure-business-template
-
- structure-consumer-template
- cq:allowedTemplates: content-consumer-templateA
- content-consumer-templateA
- cq:allowedTemplates: content-consumer-templateA
- structure-consumer-template
I created a page "MyStructurePage" with the structure-consumer-template and below it a page "MyContentPageA" with template content-consumer-templateA. Everything works.
/content/MyStructurepage/MyContantPageA
But now a template editor creates a new editable template "content-consumer-templateB" based on the "content-consumer-template-type". The editor allows the "content-consumer-templateB" template as a template below "structure-consumer-template" and "content-consumer-templateA" via cq:allowedTemplates property. But now below my pages "MyStructurePage" and "MyContentPageA" I can't create a page with template "content-consumer-templateB" because they were already create before the cq:allowedTemplate property was changed. I also can't work with wildcards for the cq:allowedTemplates property because I have to differ between business and consumer template and unfortunately the current structure of template names in my project (not a new setup) haven't a naming convention like in my constructed example.
Finally my question is: How to allow new editable templates for already created pages?
Thanks for helping me!
Andrea
--------
AEM 6.5 SP14