Override URL Logout

cancel
Showing results for 
Search instead for 
Did you mean: 
DoZi
Active Member

Override URL Logout

Jump to solution

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 

1 Solution

Accepted Solutions
Prachi_Shah
Active Member

Re: Override URL Logout

Jump 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

Regards,
Prachi Shah| ContCentric

View solution in original post

1 Reply
Prachi_Shah
Active Member

Re: Override URL Logout

Jump 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

Regards,
Prachi Shah| ContCentric