Header Icons Ausblenden in Alfresco 4.2.d – 5.1

Siehe http://blogs.alfresco.com/wp/developer/2013/09/04/customizing-the-share-header-menu-part-1/

Wenn’s rasch gehen soll

File editieren:

vi /opt/alfresco-4.2.d/tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/org/alfresco/share/imports/share-header.lib.js

Hier kann der Code den Wünschen nach angepasst werden. Dazu in die Sektion

function generateAppItems()

wechseln und die Anpassungen vornehmen:

/*,
      {
         id: "HEADER_PEOPLE",
         name: "alfresco/menus/AlfMenuBarItem",
         config: {
            id: "HEADER_PEOPLE",
            label: "header.menu.people.label",
            targetUrl: "people-finder"
         }
      }*/
   ];

   if (user.isAdmin)
   {
      appItems.push({
         id: "HEADER_PEOPLE",
         name: "alfresco/menus/AlfMenuBarItem",
         config: {
            id: "HEADER_PEOPLE",
            label: "header.menu.people.label",
            targetUrl: "people-finder"
         }
      });
   }
/*   if (user.isAdmin || showRepositoryLink == "true") */
   if (user.isAdmin)
   {
      appItems.push({
         id: "HEADER_REPOSITORY",
         name: "alfresco/menus/AlfMenuBarItem",
         config: {
            id: "HEADER_REPOSITORY",
            label: "header.menu.repository.label",
            targetUrl: "repository"
         }
      });
   }