Close

BlogByCategory Route

IvanSlater
8 years ago
#10629 Quote
Avatar
  • 89
Hi there!

I have change the default nop blog path from /blog to /articles and everything goes fine, except your _RichBlogCategoriesNavigation.cshtml that uses your BlogByCategory route, poiting to /blog/category path.

Is possible to override this path to use /articles/category instead?

Please help!
Deni
8 years ago
#10633 Quote
Avatar
  • Moderator
  • 389
IvanSlater wrote:
Hi there!

I have change the default nop blog path from /blog to /articles and everything goes fine, except your _RichBlogCategoriesNavigation.cshtml that uses your BlogByCategory route, poiting to /blog/category path.

Is possible to override this path to use /articles/category instead?

Please help!


Hi, 

Have you tried registering your route pointing to our controller/action, which are "RichBlog", "Category". Then you only need to modify the views.

I think this will do the trick for you.
Best Regards,
Mladen Staykov
Nop-Templates.com
IvanSlater
8 years ago
#10634 Quote
Avatar
  • 89
Worked!

Thanks!