06-24-2016 05:11 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-24-2016 05:59 AM
06-24-2016 06:33 AM
//<import resource="classpath:/alfresco/site-webscripts/org/alfresco/share/imports/share-header.lib.js">
var headerMenu = widgetUtils.findObject(model.jsonModel, "id", "HEADER_TASKS_GROUP"); //Retrouve l'objet Menu Bar
if(headerMenu!=null)
{
headerMenu.config.widgets.push({
id: "HEADER_EXERSYS",
name: "alfresco/header/AlfMenuItem",
config:
{
id: "HEADER_EXERSYS",
label: "header.menu.exersys.label",
targetUrl: "alfresco/service/exersys/"
}
});
}
06-24-2016 08:30 AM
<extension>
<modules>
<module>
<id>Add custom menu item - workflows filtered list - to header</id>
<version>1.0</version>
<auto-deploy>true</auto-deploy>
<customizations>
<customization>
<targetPackageRoot>org.alfresco.share.header</targetPackageRoot>
<sourcePackageRoot>fr.crnpdc.header</sourcePackageRoot>
</customization>
</customizations>
</module>
</modules>
</extension>
06-24-2016 11:54 AM
06-29-2016 03:45 AM
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.