embryo wrote:Hi-
I'm trying to add a couple of other links to my Categories Header Menu, but can't figure out the correct way to refer to the Home page..
I tried this:
<li><a href="@Url.RouteUrl("Home", new { SystemName = "home" })">@T("Home")</a></li>
....and evidentally "home" isn't the correct system name...what is?
Also, I want to add a link to the forum, and that does work, but it displays in all lower case instead of how I specify it in my code.
<li><a href="@Url.RouteUrl("Boards", new { SystemName = "boards" })">@T("KnowledgeBase")</a></li>
How do I get it to display the word "KnowledgeBase" instead of "knowledgebase" ??
Thanks-
Steve
Hi Steve,
The correct way to reffer to the Home page is
<li><a href="@Url.RouteUrl("HomePage")">@T("HomePage")</a></li>
For the blog is
<li><a href="@Url.RouteUrl("Blog")">@T("Blog")</a></li>
The best way to find the references is to go to
/Views/Common/ and open
Menu.cshtml.
To display
Knowledge Base instead of
Blog. You need to go to the administration of your
nopCommerce website. Then go to
Configuration => Languages. Click
View string resources next to your first language e.g
English. You will see all resources for your website.
Now you have two options:
1. To change the value of the
Blog resource to
Knowledge Base2. To create new resource
KnowledgeBaseTo change the value of the
Blog resource click on the filrer button for the
Resource name, type
blog and click
Filter. You will have one item. Click the
Edit button and replace the
Value with
Knowledge Base.
Repeat this process for all your languages e.g for German replace the
Value with
Wissensbasis.
To create new resource, click on the
Add new record button. For the
Resource name enter
KnowledgeBase and for the
Value enter
Knowledge Base. Click on the
Insert button. Repeat this process for all your languages.
If you have chosen the second option you need to change the refference to your blog from
<li><a href="@Url.RouteUrl("Blog")">@T("Blog")</a></li>
to
<li><a href="@Url.RouteUrl("Blog")">@T("KnowledgeBase")</a></li>
Have a great day!
Ivan Stoyanov