Need to redirect "CatalogLibrary.GetNiceUrlForCategory(category)" traffic to a new page
Hi uCommerce folk,
I have a project which contains both the "Avenue Clothing" Demo Razor store (for learning) as well as the store I am building.
My code is based on the demo code and is calling "@CatalogLibrary.GetNiceUrlForCategory(category)" to go to a product page. This currently calls the Demo Razor store page at \macroScripts\uCommerce\Product.cshtml .
I have created a new MVC View page (largely based on the contents of \macroScripts\uCommerce\Product.cshtml ) and need to change ??Something?? so that when I call @CatalogLibrary.GetNiceUrlForCategory(category)" it calls my new page rather than the old Product.cshtml page.
*(1) What do I need to change ?
(2) Also is CatalogLibrary.GetNiceUrlForCategory(category) part of base Umbraco or part of the Razore Demo store ?*
Need to redirect "CatalogLibrary.GetNiceUrlForCategory(category)" traffic to a new page
Hi uCommerce folk,
I have a project which contains both the "Avenue Clothing" Demo Razor store (for learning) as well as the store I am building.
My code is based on the demo code and is calling "@CatalogLibrary.GetNiceUrlForCategory(category)" to go to a product page. This currently calls the Demo Razor store page at \macroScripts\uCommerce\Product.cshtml .
I have created a new MVC View page (largely based on the contents of \macroScripts\uCommerce\Product.cshtml ) and need to change ??Something?? so that when I call @CatalogLibrary.GetNiceUrlForCategory(category)" it calls my new page rather than the old Product.cshtml page.
*(1) What do I need to change ?
(2) Also is CatalogLibrary.GetNiceUrlForCategory(category) part of base Umbraco or part of the Razore Demo store ?*
Thanks a lot
Terry Clancy
ClanceZ
OK,
I think I have figured this our for myself.
It looks like the file
/Config/UrlRewriting.config
has entries that determine the destination pages for the
CatalogLibrary.GetNiceUrlForCategory(category)
method.
Thanks anyway :-)
Terry Clancy
ClanceZ
is working on a reply...