AnsweredAssumed Answered

share-header.lib.js override doesn't work in Alfresco SDK 3.0

Question asked by dmahendrarajah on Jun 30, 2017
Latest reply on Jun 30, 2017 by afaust

Hi,

I have built a project using Alfresco SDK 3.0 and tried to override the getShareServices() in the share-header.lib.js file. I created the modified share-header.lib.js in the following directory of SDK folder sites-webscripts/

sites-webscripts/com/alfresco/share/imports/

and my extension file is like as follow

<module>

      <id>custom shareService</id>

      <version>1.0</version>

      <auto-deploy>true</auto-deploy> 

      <customizations>

        <customization>

          <targetPackageRoot>org.alfresco.share.imports</targetPackageRoot>

          <sourcePackageRoot>com.alfresco.share.imports</sourcePackageRoot>

          <alwaysApply>

       <webscript>share-header</webscript>

      </alwaysApply>

        </customization>

      </customizations>

    </module>

But the changes are not applied, though the new module is getting registered. Do I need to add anything more?

 

Thanks.

 

 

Outcomes