06-23-2016 11:10 AM
<extension>
<modules>
<module>
<id>Add Buttom Exersys</id>
<version>1.0</version>
<customizations>
<customization>
<targetPackageRoot>org.alfresco.share.header</targetPackageRoot>
<sourcePackageRoot>custom-header</sourcePackageRoot>
</customization>
</customizations>
</module>
</modules>
</extension>
//<import resource="classpath:/alfresco/site-webscripts/org/alfresco/share/imports/share-header.lib.js">
var headerMenus = widgetUtils.findObject(model.jsonModel, "id", "HEADER_APP_MENU_BAR"); //Retrouve l'objet Menu Bar
var NewAppItems = [
{
id: "HEADER_EXERSYS",
name: "alfresco/menus/AlfMenuBarItem",
config:
{
label: "header.menu.exersys.label",
targetUrl: "alfresco/service/exersys/"
}
}
];
headerMenus.appItems = NewAppItems; //L'attribut appItems permet d'ajouter l'objet à gauche
06-28-2016 03:24 AM
var headerMenu = widgetUtils.findObject(model.jsonModel, "id", "HEADER_APP_MENU_BAR"); //Retrouve l'objet Menu Bar
if (headerMenu != null) {
headerMenu.config.widgets.push({
id: "HEADER_EXERSYS",
name: "alfresco/menus/AlfMenuBarItem",
config: {
label: "header.menu.exersys.label",
targetUrl: "alfresco/service/exersys/"
}
});
}
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.