AnsweredAssumed Answered

Extend documentlist_v2.lib.ftl template

Question asked by netfisher777 on Nov 20, 2015
Latest reply on Nov 27, 2015 by netfisher777
Hi everyone!

I'm developing share amp module and need to hide some menu items from options popup menu in the right corner of documentlist component.

I'm trying to extend documentlist_v2.lib.ftl template, but it's not working:

src/main/amp/config/alfresco/web-extension/site-webscripts/com/somepackage/components/documentlibrary/include/documentlist_v2.lib.ftl:


<@markup target="documentListViewRssAction" action="remove" />


src/main/amp/config/alfresco/web-extension/site-data/extensions/interface-cut-plugin-extension-modules.xml:


<extension>
<modules>
    <module>
        <id>Remove Document Library Options menu items</id>
        <auto-deploy>true</auto-deploy>
        <customizations>
            <customization>
                <targetPackageRoot>org.alfresco.components.documentlibrary.include</targetPackageRoot>
                <sourcePackageRoot>com.somepackage.components.documentlibrary.include</sourcePackageRoot>
            </customization>
        </customizations>
    </module>
</extension>


What's wrong with this? May be documentlist_v2.lib.ftl need to be located at another package?

Outcomes