You are here

Aikau Menus

The main menu of Share is implemented with the new Aikau UI development framework. It is possible to customize this menu, so you can navigate to new custom pages for example.
Extension Point Aikau Menus
Support Status Full Support
Architecture Information Share Architecture.

The main menu and title in Share is implemented in Aikau, it looks like this:

Adding and removing menu items from the menu is a common task. To do this we use a Surf Extension Module. It will look something like this:

      <id>Add custom menu item to header</id>

So we are targeting the /share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/share/header/share-header.get.js web wcript controller file, which implements the menu JSON model. Now, if we want to for example add a menu item we need to create a file with the same name and put it in alfresco/web-extension/site-webscripts/com/example/header. The file will look like this:

var headerMenu = widgetUtils.findObject(model.jsonModel, "id", "HEADER_APP_MENU_BAR");
if (headerMenu != null) {
        name: "alfresco/menus/AlfMenuBarItem",
            config: {
                label: "My profile",
                targetUrl: "user/" + encodeURIComponent( + "/profile"

This is all that is required to extend an existing JSON model. We're using widgetUtils to find the HEADER_APP_MENU_BAR widget. Once we have it, we simply push a widget into it.

Deployment - App Server (Untouched by re-depolyments and upgrades)
  • tomcat/shared/classes/alfresco/web-extension/site-webscripts/ - put the files that are overriding here
  • tomcat/shared/classes/alfresco/web-extension/site-data/extensions - put the Extension Module here.
Deployment All-in-One SDK project.
  • aio/share-jar/src/main/resources/alfresco/web-extension/site-webscripts - put the files that are overriding here
  • aio/share-jar/src/main/resources/alfresco/web-extension/site-data/extensions - put the Extension Module here.
More Information
Developer Blogs

Sending feedback to the Alfresco documentation team

You don't appear to have JavaScript enabled in your browser. With JavaScript enabled, you can provide feedback to us using our simple form. Here are some instructions on how to enable JavaScript in your web browser.