cancel
Showing results for 
Search instead for 
Did you mean: 

Aikau header customisation not working on search page

michaelböckling
Champ in-the-making
Champ in-the-making
In Alfresco 5.0.0.5 Enterprise, I customized the header menu by modifying share-header.get.js, e.g.:


var sitesMenu = widgetUtils.findObject(model.jsonModel.widgets, "id", "HEADER_SITES_MENU");
if (sitesMenu != null)
{
  // Change the widget to our custom menu
  sitesMenu.name = "alfresco/header/CustomAlfSitesMenu";
}


That works on the user dashboard page. But when I go to the fully Aikau-based search page, that customization is no longer active.

What do I have to do?
4 REPLIES 4

afaust
Legendary Innovator
Legendary Innovator
Hello Michael,

see <a href="https://forums.alfresco.com/forum/developer-discussions/web-scripts/share-headergetjs-extension-over...">share-header.get.js extension override doesn't always work</a> for the same issue and the suggested solution.
I haven't tested it myself, so can't say anything about the people having issues with David's suggestion.

Regards
Axel

michaelböckling
Champ in-the-making
Champ in-the-making
It seems this has worked. I'm a bit surprised this (rather hacky workaround) isn't mentioned anywhere in the official tutorials / docs, when modifying the header you usually want to have it active on all pages.
Anyway, thanks a lot!

Which method did you use?

This approach vom ddraper works:

http://blogs.alfresco.com/wp/developer/2013/09/16/customizing-the-share-header-part-3/#comment-19366...

(When adding it to your own extension module, pay attention under which exact folder hierarchy the extension files should be placed, just like in ddrapers's jar.)