Subtemplates are not merged with the prototype ----------------------------------------------
Key: MGNLSTK-763 URL: http://jira.magnolia-cms.com/browse/MGNLSTK-763 Project: Magnolia Standard Templating Kit Issue Type: Bug Components: templates Affects Versions: 1.4.1 Reporter: Stefan Baur Assignee: Philipp Bärfuss A subtemplate definition (in my case print) defined in the template prototype in the site definition is not taken into account in rendering. If I instead move the subtemplates node to my template definition, it instantly works. This means, that I have to copy the subtemplate definition to each template. Otherwise, I could define it centrally. Am I missing something, or is there another reason why this doesent work? here is my NodeOperation that creates the subtemplate definition: public static NodeOperation addSubTemplateNode(final String subTemplateName, final String subTemplateFileName) { return new AbstractNodeOperation() { protected Content doExec(Content context, ErrorHandler errorHandler) throws RepositoryException { Content subTemplatesNode = ContentUtil.getOrCreateContent(context, "subTemplates", context.getItemType()); Content subTemplateNode = ContentUtil.getOrCreateContent(subTemplatesNode, subTemplateName, context.getItemType()); subTemplateNode.setNodeData("class", "info.magnolia.module.templatingkit.templates.STKTemplate"); subTemplateNode.setNodeData("extension", subTemplateName); subTemplateNode.setNodeData("modelClass", "info.magnolia.module.templatingkit.templates.STKTemplateModel"); subTemplateNode.setNodeData("templatePath", subTemplateFileName); subTemplateNode.setNodeData("type", BALOISE_TEMPLATE_RENDERER_NAME); subTemplateNode.setNodeData("i18nBasename", BALOISE_INTERNET_I18N_BASENAME); return subTemplateNode; } }; } -- This message is automatically generated by JIRA. - If you think it was sent incorrectly contact one of the administrators: http://jira.magnolia-cms.com/secure/Administrators.jspa - For more information on JIRA, see: http://www.atlassian.com/software/jira ---------------------------------------------------------------- For list details see http://www.magnolia-cms.com/home/community/mailing-lists.html To unsubscribe, E-mail to: <dev-list-unsubscr...@magnolia-cms.com> ----------------------------------------------------------------