Add custom topic to header menu

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
9 years ago
thaopn24 wrote:
Hi Wooncherk,

How do you add a topic page to header menu in version nop3.3? I've been trying to look for Views/Common/Menu.cshtml but it's not there.
Also, how to show just "blog" on header menu?

Thank you


The menu looks like it moved to Views/Catalog/TopMenu.cshtml

Hope that helps...
-tom
9 years ago
mya wrote:


code]<a href="@Url.Content("~/t/TOPIC-SYSTEM-NAME")">LINK_TEXT</a>[/code]

Please in the versione 3.30 this code don't works...
you can help me pleaseeeeeeee?
thanks XD


Use this instead in the Views/Catalog/TopMenu.cshtml

First add this top of the page:
@using Nop.Web.Extensions


Then add this where you want your link in the menu:
<li><a href="@Url.RouteUrl("Topic", new { SeName = Html.GetTopicSeName("organizations") })">@T("topic.organizations")</a></li>


Note that "organizations" in that example is the Topic system name
Note that "topic.organizations" is the name of the localization resource under Admin/Config/Languages

Hope that helps

PS I'm using v3.4
-tom
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.