Hi,
i'm new about Alfresco and my first task is to override Logout URL in menu?
i'm a PHP programmator and new to Alfresco and its modules ... can someone can help me step by step?
Please i know that is a basically question..
I started with this from documentation: This is to add an item in menù i know... but to start to understand Alfresco i think is good too
1- I create this file under tomcat/shared/classes/alfresco/extension/additemmenu.xml
<extension> <modules> <module> <id>Add_custom_menu_item_to_header</id> <version>1.0</version> <auto-deploy>true</auto-deploy> <customizations> <customization> <targetPackageRoot>org.alfresco.share.header</targetPackageRoot> <sourcePackageRoot>com.example.header</sourcePackageRoot> </customization> </customizations> </module> </modules> </extension>
2- and this tomcat/webapps/share/WEB-INF/classes/alfresco/site-webscripts/com/example/header/share-header.get.js
var headerMenu = widgetUtils.findObject(model.jsonModel, "id", "HEADER_APP_MENU_BAR"); if (headerMenu != null) { headerMenu.config.widgets.push({ id: "HEADER_CUSTOM_PROFILE_LINK", name: "alfresco/menus/AlfMenuBarItem", config: { label: "Pippo", targetUrl: "user/" + encodeURIComponent(user.name) + "/profile" } }); }
Nothing happen...
Can someone help me... i think i'm missing something
Solved! Go to Solution.
Hi,
Please check this(from step number 7).
https://docs.alfresco.com/5.1/tasks/dev-extensions-share-tutorials-custom-header-admin-menu.html
This might be helpful to you.
Thanks,
Prachi Shah
Hi,
Please check this(from step number 7).
https://docs.alfresco.com/5.1/tasks/dev-extensions-share-tutorials-custom-header-admin-menu.html
This might be helpful to you.
Thanks,
Prachi Shah
Discussions, help and advice about the Alfresco Development Framework.
By using this site, you are agreeing to allow us to collect and use cookies as outlined in Alfresco’s Cookie Statement and Terms of Use (and you have a legitimate interest in Alfresco and our products, authorizing us to contact you in such methods). If you are not ok with these terms, please do not use this website.