Category - InfoBlock add category link or external URL - Nop v2.2

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
12 years ago
Hi Nop Forum

Just upgraded to v2.2, and having a game adding a link in the infoBlock.cshtml

<li><a href="@Url.RouteUrl("Topic", new { SystemName = "privacyinfo" })">@T("PrivacyNotice")</a></li>

Creates a URL link to a Privacy Info - topic page ..

Question - How do i hard code to a URL and a category ID number...?

www.google.com

Product / Category number 1
http://www.mywebsite.co.uk/c/1/productname

Any advice would be great...  I need to add this today...

Having using v1.9 for ages and just getting used to v2.2 (MVC) but still learning - any pointers in the right directions...
Cheers
12 years ago
bluetooth wrote:
Hi Nop Forum

Just upgraded to v2.2, and having a game adding a link in the infoBlock.cshtml

<li><a href="@Url.RouteUrl("Topic", new { SystemName = "privacyinfo" })">@T("PrivacyNotice")</a></li>

Creates a URL link to a Privacy Info - topic page ..

Question - How do i hard code to a URL and a category ID number...?

www.google.com

Product / Category number 1
http://www.mywebsite.co.uk/c/1/productname

Any advice would be great...  I need to add this today...

Having using v1.9 for ages and just getting used to v2.2 (MVC) but still learning - any pointers in the right directions...
Cheers


Just add a topic in admin menu and then hardcode in the infoblock , like
<li><a href="@Url.RouteUrl("Topic", new { SystemName = "newtopic" })">@T("NewTopic")</a></li>
Dont forget to add the name in the resources which can be found in the language section.
12 years ago
creative3k wrote:
Hi Nop Forum

Just upgraded to v2.2, and having a game adding a link in the infoBlock.cshtml

<li><a href="@Url.RouteUrl("Topic", new { SystemName = "privacyinfo" })">@T("PrivacyNotice")</a></li>

Creates a URL link to a Privacy Info - topic page ..

Question - How do i hard code to a URL and a category ID number...?

www.google.com

Product / Category number 1
http://www.mywebsite.co.uk/c/1/productname

Any advice would be great...  I need to add this today...

Having using v1.9 for ages and just getting used to v2.2 (MVC) but still learning - any pointers in the right directions...
Cheers

Just add a topic in admin menu and then hardcode in the infoblock , like
<li><a href="@Url.RouteUrl("Topic", new { SystemName = "newtopic" })">@T("NewTopic")</a></li>
Dont forget to add the name in the resources which can be found in the language section.


Updated:
Just noticed you asked the question related to category , well u can hardcode the category link if you know the category id , its just the simple html <a href="http://www.mywebsite.co.uk/c/1/productname">productname</a>
12 years ago
Hi creative3k

Thanks for the reply, tested out and just what i wanted... cheers for the coding... was as simple as that... cool
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.