Dark Star1
Dark Star1

Reputation: 7403

How to extend ftl display template in alfresco share?

I have the following xml customisation to deploy my customisations declared:

<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>

and I'm trying to add an additional CSS to header.get.html.ftl so I created, under the following path, webscripts/fr/mypackage/components/header/ a header.get.html.ftl and added the following to it :

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

But the css isn't added to the header. Am I missing an important step here?
Edit: I should add I'm working on 4.2.e if this helps.

Upvotes: 1

Views: 1769

Answers (1)

Tahir Malik
Tahir Malik

Reputation: 6643

I think they changed it in 4.2, take a look at http://blogs.alfresco.com/wp/developer/2013/09/04/customizing-the-share-header-menu-part-1/

Here the source package should be: <targetPackageRoot>org.alfresco.share.header</targetPackageRoot>

Upvotes: 1

Related Questions