Close

trouble with additional topic in 3.10

embryo
11 years ago
#3187 Quote
Avatar
  • 55
I've had no trouble adding additional links to the megamenu in the past, but it seems a little different with version 3.10.

I have a topic page with a systemname of "Learn", and I added this following code to my megamenu.cshtml expecting a new menu item to appear saying "Learn."


    @{
        MvcHtmlString learnTopicBlock = Html.Action("TopicBlock", "MegaMenu", new { systemName = "Learn" });
     }
<li>@learnTopicBlock</li>


It does not.

As a test, I nested my code inside the megamenutopic if/then section, and enabled the megamenutopic in the megamenu settings. It still did not appear.

I even tried just changing it to be a direct link to the topic page instead of dropping down, and it still didn't appear:
<li><a href="@Url.RouteUrl("Topic", new { SystemName = "Learn" })">@T("Learn")</a></li>


It's as if the systemname is incorrect, but it is not.

As another test, I just added the following:
right below this line:

<ul class="mega-menu">

I added this list item

<li><a href="http://www.mysite.com">Test</a></li>

It doesn't even appear....

Clues?
embryo
11 years ago
#3189 Quote
Avatar
  • 55
Doh...nevermind....I figured it out..

I was editing the MegaMenu.cshtml in the MegaMenu/Views root...instead of the one in the MegaMenu/Themes/Alfresco/Views/ folder...