AnsweredAssumed Answered

5.0 Removing menu items from header bar

Question asked by gregk on May 8, 2015
Latest reply on May 18, 2015 by gregk

I'm trying to remove various menu items from the UI for non-admin users. I've created an extension as discussed in:

This extended the original ../webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/share/header/share-header.get.js
with my removals in ../shared/classes/alfresco/web-extension/…/share-header.get.js

This worked fine for most pages…However this does not work for other pages like search.

I've since read:

This suggests changing the include within the overridden share-header.get.js to include an additional customised version of share-header.<strong>lib</strong>.js (also in ../shared/).

Should I just be able to override share-header.lib.js so the original and override are called on any includes? - this doesn't seem to work.
Otherwise I'd have to copy the contents from the original share-header.lib.js and add my changes then override any *.get.js including the modified share-header.lib.js. - This didn't seem to work for me either.

Please could someone confirm the correct action for customising the menu header throughout all alfresco pages.