override existing dashlet using maven archetype
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2016 05:26 AM
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
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
Labels:
- Labels:
-
Archive
7 REPLIES 7
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2016 06:59 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2016 07:01 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-23-2016 08:32 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2016 01:22 AM
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
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
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2016 05:03 AM
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
http://docs.alfresco.com/5.1/tasks/dev-extensions-share-tutorials-custom-header-menu-item-removal.ht...
Regards
Steven
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-24-2016 05:14 AM
Thanku Steven for your help. I will try these links and get back to you
Regards,
Nancy
Regards,
Nancy
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎07-05-2016 05:05 AM
Thanks Steven , this helped me a lot
Regards,
Nancy
Regards,
Nancy