
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-19-2020 01:31 PM
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
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2020 02:59 AM
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
Prachi Shah| ContCentric
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
03-25-2020 02:59 AM
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
Prachi Shah| ContCentric
