Details
-
Bug
-
Resolution: Fixed
-
Neutral
-
None
-
1.4.1
-
-
Empty show more show less
Description
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
};
}