mirror of
https://github.com/Alfresco/alfresco-community-repo.git
synced 2025-08-07 17:49:17 +00:00
- got extension functions working from freemarker with namespaces. there's still the caveat that you need to use the ftl tag to include the alfresco namespace if you're using extension functions and want the file name from getXMLDocuments, but other than that it's pretty much exactly what i wanted and mimics the xsl environment perfectly.
- beginning slowly to move to new and hopefully finalized terminology. git-svn-id: https://svn.alfresco.com/repos/alfresco-enterprise/alfresco/BRANCHES/WCM-DEV2/root@4171 c4b6b30b-aa2e-2d43-bbcb-ca4b014f7261
This commit is contained in:
@@ -51,6 +51,8 @@ import org.alfresco.web.bean.repository.Repository;
|
||||
|
||||
/**
|
||||
* Provides management of template types.
|
||||
*
|
||||
* @author Ariel Backenroth
|
||||
*/
|
||||
public final class TemplatingService implements Serializable
|
||||
{
|
||||
@@ -213,11 +215,11 @@ public final class TemplatingService implements Serializable
|
||||
WCMModel.PROP_FORM_TRANSFORMER_TYPE));
|
||||
|
||||
final Constructor c = templateOutputMethodType.getConstructor(NodeRef.class, NodeService.class, ContentService.class);
|
||||
final TemplateOutputMethod tom = (TemplateOutputMethod)
|
||||
final FormDataRenderer tom = (FormDataRenderer)
|
||||
c.newInstance(tomNodeRef, this.nodeService, this.contentService);
|
||||
LOGGER.debug("loaded template output method type " + tom.getClass().getName() +
|
||||
" for extension " + tom.getFileExtension() + ", " + tomNodeRef);
|
||||
tt.addOutputMethod(tom);
|
||||
tt.addFormDataRenderer(tom);
|
||||
}
|
||||
catch (Exception e)
|
||||
{
|
||||
|
Reference in New Issue
Block a user