cancel
Showing results for 
Search instead for 
Did you mean: 

override existing dashlet using maven archetype

nancyaggarwal
Champ in-the-making
Champ in-the-making
Hi All,

I have one requirement where i have make some changes in existing share widgets, i need to modify the same existing dashlets in alfresco. Can i do this with the help of alfresco all in one archetype or there is some other way by which i can achieve this?




Regards,
Nancy Aggarwal
7 REPLIES 7

steven_okennedy
Star Contributor
Star Contributor
Hi Nancy,

A dashlet is basically just a webscript so if you define your own version of that same webscript within the <projectname>-share-amp part of your all in one project then your version will take preference.

Put your copy of the dashlet controller/ftl file under the <projectname>-share-amp/src/main/amp/config/alfresco/web-extension/site-webscripts/org/alfresco/components/dashlets folder.  You only need to copy in the files that you are actually modifying.

Also bear in mind that the part of the dashlet that you want to change may be being controlled by a client side component, if that's the case your client side Javascript/css files go under the <projectname>-share-amp/src/main/resources/META-INF folder 

Regards

Steven

Hi Steven,

Thanks for your answer, I got it but can you provide some example for the same so that i can get clear understanding of it?


Regards,
Nancy

Hi Nancy,

Have a look at this

http://docs.alfresco.com/5.1/tasks/dev-extensions-share-tutorials-js-customize.html

If you give some detail around what you're trying to customise/what dashlet you're looking at, I might be able to give some more specific information

Regards

Steven

Hi Steven,

I want to customize my task dashlet and also the header component according to the requirement. Say for Example i want to remove my sites module from the header component.


Regards,
Nancy

There's a tutoruial in the Alfresco docs around how to remove items from the Share menu

http://docs.alfresco.com/5.1/tasks/dev-extensions-share-tutorials-custom-header-menu-item-removal.ht...

Regards

Steven

Thanku Steven for your help. I will try these links and get back to you



Regards,
Nancy

Thanks Steven , this helped me a lot

Regards,
Nancy