from a custom plugin i would like to overwrite the routes of the default polls. succeeded for the admin side, but cannot do it for the public pages. Mostly I'm interested for the home page and left column partials. A bit of help would be nice
for example this didn't worked for the left columns:
var route5 = routes.MapRoute("Plugin.Misc.Polls.CategoryPagePoll", "Poll/PollBlock", new { controller = "Polls", action = "CategoryPagePoll", area = "" }, new[] { "Nop.Plugin.Misc.Polls.Controllers" });
from a custom plugin i would like to overwrite the routes of the default polls. succeeded for the admin side, but cannot do it for the public pages. Mostly I'm interested for the home page and left column partials. A bit of help would be nice
for example this didn't worked for the left columns:
var route5 = routes.MapRoute("Plugin.Misc.Polls.CategoryPagePoll", "Poll/PollBlock", new { controller = "Polls", action = "CategoryPagePoll", area = "" }, new[] { "Nop.Plugin.Misc.Polls.Controllers" });
routes.Remove(route5); routes.Insert(0, route5);
Thanks!
Which route you want to override ? I think there is no route existing like "Poll/PollBlock" ..make sure it
i would like to override the Polls partial (controller and action) of the homepage, and of the left side column. http://docs.nopcommerce.com/display/en/Polls
it's called like @Html.Action("PollBlock", "Poll", new {systemKeyword = "LeftColumnPoll"})
so probably that is why a route isn't working for me. is there a way?
i would like to override the Polls partial (controller and action) of the homepage, and of the left side column. http://docs.nopcommerce.com/display/en/Polls
it's called like @Html.Action("PollBlock", "Poll", new {systemKeyword = "LeftColumnPoll"})
so probably that is why a route isn't working for me. is there a way?