cancel
Showing results for 
Search instead for 
Did you mean: 

Override header menu properties

iwkse
Star Contributor
Star Contributor
Hi,
I want to override the properties file of the header menu. In this case I start with Sites.
I do have a JAR which override language related chunks.

As for sites, the property is header.menu.sites.label and this property is available both
in webscripts and client.

WEB-INF/classes/alfresco/site-webscripts/org/alfresco/share/header/share-header.get.properties
WEB-INF/classes/alfresco/site-webscripts/org/alfresco/share/imports/share-header.lib.properties
js/alfresco/header/i18n/AlfMenuBar.properties

The client property override the webscripts so I don't know how to change this.
While testing I removed the js/alfresco/header/i18n/AlfMenuBar*properties and I can properly see the
webscript properties applied.

Anyone know a way to fix that without hacking?

Regards,
3 REPLIES 3

iwkse
Star Contributor
Star Contributor
Thanks, just there's a thing..when I enable surfbug I cannot highlight the share-header section to get the info panel. It starts to highlight from the alf-full-with div.
Any clue?

Regards,

ddraper
World-Class Innovator
World-Class Innovator
I think we've more or less addressed this issue in an Aikau GitHub issue, but you effectively need to extend the widget and define a custom properties file (then you can override whatever labels you want to), then swap out the default SitesMenu with your custom version (all other functionality will remain the same). SurfBug is designed to work with Surf Components, it won't work with Aikau widgets, there is a "Developer View" option in the Debug menu in Share that you can use to reveal all the Aikau widgets on a page.