cq5 - In AEM 6.2, how do you create a static page template on a site that already has editable page templates? -
i'm having trouble creating static page template on our site has editable pages. i'm not sure if i'm creating template wrong, missing required call, or if config templates exist aem doesn't check templates in apps.
i have static template defined in apps, this documentation says define static template
apps/<site-name>/templates/<template-name>
and editable templates in
content/conf/<site-name>/settings/wcm/templates
i've tried adding static template conf templates directory, , shows option when creating new page, properties tab during page creation empty , create button grayed out.
here apps static template .content.xml
<?xml version="1.0" encoding="utf-8"?> <jcr:root xmlns:sling="http://sling.apache.org/jcr/sling/1.0" xmlns:cq="http://www.day.com/jcr/cq/1.0" xmlns:jcr="http://www.jcp.org/jcr/1.0" xmlns:mix="http://www.jcp.org/jcr/mix/1.0" xmlns:nt="http://www.jcp.org/jcr/nt/1.0" jcr:description="bio page" jcr:mixintypes="[mix:lockable]" jcr:primarytype="cq:template" jcr:title="bio page" allowedpaths="[/content(/.*)?]" ranking="{long}3"> <jcr:content cq:designpath="/etc/designs/<site>" jcr:primarytype="cq:pagecontent" sling:resourcetype="<site>/components/structure/static-page/bio" cq:template="/apps/<site>/templates/bio-page"> </jcr:content> </jcr:root>
- your static template not working when defined under
/apps/<site>/templates
, in above xml template definitionjcr:content
shouldn't have propertycq:template
. propertycq:template
exists in pages created using templates.
where trying create page using template, template thou defines allowed path /content , hierarchy below may limited/restricted properties allowedchildren
, allowedparents
on other templates in hierarchy. try creating page directly under /content
no other limitation apply. able create page then?
- moving template under
/conf/<site-name>/settings/wcm/templates
needs associate structure in definesling:resourcetype="<site>/components/structure/static-page/bio"
, responsible defined properties see in create page wizard. if reused/copy pasted template/apps
/conf
may missing structure, adding fix issue
Comments
Post a Comment