4

Trying to override the standard profile menu in a Napili community and following the documentataion.

I have the following code in a component:

<aura:component implements="forceCommunity:profileMenuInterface" access="global">
<aura:attribute name="options" type="String[]" default="Option 1, Option 2"/>
<ui:menu >
    <ui:menuTriggerLink aura:id="trigger" label="Profile Menu"/>
    <ui:menuList class="actionMenu" aura:id="actionMenu">
        <ui:actionMenuItem label="Test1"/>
        <ui:actionMenuItem label="Test2"/>
        <ui:actionMenuItem label="Test3"/>
    </ui:menuList>
</ui:menu>

Copied straight from the documentation.

I also set the User Profile Component to my custom "CommunityProfileMenu" component: enter image description here

However, I'm still seeing the standard profile menu in my page.

enter image description here

Is there an issue with overriding these in Sandbox currently?

1
  • Have you publish the changes? I have copied and pasted your code and it shows me a custom menu
    – AH3
    Commented Jul 5, 2017 at 7:45

1 Answer 1

1

To view the custom profile menu go to the Community Builder and select Settings>Theme and click the Customise option next to the layout type you wish to add the new menu in.

Then the new profile component should show under the user profile component drop down list as below. If you select it then it should be displayed. If the custom component is not displayed then that would probably be due to an error in the component.

For it to be visible make the change on the Inner section of the Theme Layout

enter image description here

1
  • The Experience Cloud Builder settings page has changed considerably and the documentation is not updated on this. freaking hell
    – compski
    Commented Aug 20 at 8:39

You must log in to answer this question.

Not the answer you're looking for? Browse other questions tagged .