Shell MenuSection / MenuItem not showing up, worked fine in EPiServer 6

Vote:
 

Hello,

 

I'm working on integrating a search provider and for that we are using a custom menu item. This worked fine in EPiServer 6, but in when upgrading to EPiServer 7 it no longer shows up at all.

 

What has changed since version 6 in regards to the episerver shell?

 

What I have found and fixed so far is that ClientResources moved from namespace EPiServer.Shell.Web.Mvc.Html to EPiServer.Framework.Web.Mvc.Html: http://world.episerver.com/Modules/Forum/Pages/thread.aspx?id=62721

 

However, even after fixing that the menuitem still won't show up. Here's what the code for the menuitem looks like:

.aspx:

using System.Web.UI;
using EPiServer.Shell.Navigation;

namespace Test.Navigation
{
    [MenuSection( MenuPaths.Global + "/test", Text = "Test" )]
    [MenuItem( MenuPaths.Global + "/test/manager", Text = "Manager", Url = "~/Admin/SitePlugin/TestManager.aspx" )]
    public partial class TestManager : Page
    {
    }
}

    

.aspx.cs:

<%@ Page Language="c#" Codebehind="TestManager.aspx.cs" AutoEventWireup="true" Inherits="Test.Navigation.TestManager" %>
<%@ Import Namespace="EPiServer.Framework.Web.Mvc.Html" %>
<%@ Register TagPrefix="sc" Assembly="EPiServer.Shell" Namespace="EPiServer.Shell.Web.UI.WebControls" %>
<html>
<head>
    <title>Test Manager</title>
    <%= Page.ClientResources( "ShellCore" ) %>
    <%= Page.ClientResources( "ShellWidgets" ) %>
    <%= Page.ClientResources( "ShellCoreLightTheme" ) %>
    <%= Page.ClientResources( "Navigation" ) %>
    <%= Page.ClientResources( "DojoDashboardCompatibility" ) %>
</head>
<body>
    <form id="form1" runat="server">
        <sc:ShellMenu runat="server" ID="ShellMenu1" Area="CMS" />
        <div class="epi-padding">
            <iframe frameborder="0" style="width: 100%; height: 93%;" src="http://localhost:8080" />
        </div>
    </form>
</body>
</html>

    

in web.config/configuration/episerver.shell/protectedModules:

<add name="TestNavigation">
  <assemblies>
    <add assembly="Test.Navigation" />
  </assemblies>
</add>

 

What do I need to change/add to get it to work in EPiServer 7?

#64417
Dec 20, 2012 9:47
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.