cancel
Showing results for 
Search instead for 
Did you mean: 

Override 'my-tasks.js'

theoryoflinkin
Champ on-the-rise
Champ on-the-rise
Hi,

For a custom developpement, I have made some changes in the my-tasks.js file.

But is there a way to override this file instead of modify it?

I try to put it inside the shared/classes/alfresco/web-extension/site-webscripts/org/alfresco/components/dashlets folder but it doesn't work

Thanks in advance
3 REPLIES 3

afaust
Legendary Innovator
Legendary Innovator
Hello,

"my-tasks.js" is a client-side resource and cannot be overriden via "web-extension". For client-side resources, the only way I know of for overriding them is to use the <a href="http://wiki.alfresco.com/wiki/Packaging_And_Deploying_Extensions#JAR">JAR packaging format</a>.

Regards
Axel

romschn
Star Collaborator
Star Collaborator
To customize the client side my-sites.js, Keep the out-of-the-box copy of the file as it is. Create a new one from it and add your changes to it and put the customized file at location tomcat/shared/classes/META-INF/components/dashlets.

Hope this helps.

Thank you!

Once again, you save my life 🙂