如何在alfresco共享中扩展ftl显示模板?

时间:2013-11-06 10:07:48

标签: alfresco alfresco-share

我有以下xml自定义来部署我声明的自定义:

<module>
    <id>Global changes</id>
    <auto-deploy>true</auto-deploy>

    <!-- Enhance individual WebScripts when their paths match -->
    <customizations>
        <customization>
            <targetPackageRoot>org.alfresco</targetPackageRoot>
            <sourcePackageRoot>fr.mypackage</sourcePackageRoot>
        </customization>

    </customizations>
</module>

我正在尝试向header.get.html.ftl添加一个额外的CSS,所以我在以下路径下创建了webscripts / fr / mypackage / components / header / a header.get.html.ftl并添加了以下内容:

<@markup id="css-additional" target="css" action="after" scope="global">
    <@link href="${url.context}/res/themes/${theme}/css/global-header.css" group="header"/>
</@>

但是css没有添加到标题中。我在这里错过了一个重要的步骤吗? 编辑:我应该补充说我正在研究4.2.e如果这有帮助。

1 个答案:

答案 0 :(得分:1)

我认为他们在4.2中对其进行了更改,请查看http://blogs.alfresco.com/wp/developer/2013/09/04/customizing-the-share-header-menu-part-1/

这里的源包应该是:<targetPackageRoot>org.alfresco.share.header</targetPackageRoot>

相关问题