November Happy Hour will be moved to Thursday December 5th.

Create a global menuitem using attribute

Vote:
 

I am having trouble using MenuItem attriubute for creating global menuitems in topnavigation inside episerver. Decorating my class with this does not work, or they do not show at all:

[MenuItem("/global/cms/edit", Text = "Edit", Url = 
            "Path/To/Default.aspx")]
            public partial class DefaultPage : SystemPageBase
            {
            }

    

But if I use the interface IMenuProvider at get the menu item to show. What am i Missing?

I have tried with the documentaiont about the subject: http://world.episerver.com/Documentation/Items/Developers-Guide/EPiServer-Framework/7/OnlineCenter/OnlineCenter/#Navigation

#75535
Sep 27, 2013 16:28
Vote:
 

Most of the time when my Menu does not show up it's because I've forgotten to add a "Shell Module" (http://world.episerver.com/Documentation/Items/Developers-Guide/EPiServer-Framework/7/OnlineCenter/OnlineCenter/#ModuleConfiguration)


But I guess you've already checked that part?

#75568
Sep 30, 2013 13:30
This thread is locked and should be used for reference only. Please use the Episerver CMS 7 and earlier versions forum to open new discussions.
* You are NOT allowed to include any hyperlinks in the post because your account hasn't associated to your company. User profile should be updated.