Ok let me understand your requirement first. If you want to show "CategoryNavigation.cshtm" view from your plugin then at _ColumnsTwo.cshtml you may write
@Html.Action("YourCustomCategoryNavigation", "YourPluginController", new { currentCategoryId = currentCategoryId, currentProductId = currentProductId })
The "YourCustomCategoryNavigation" method will have the same functionality as the default one but it will return
return PartialView("~/Plugins/YourPlugin/Views/YourView/CategoryNavigation.cshtml", model);
Hi Dear sina.islam,
What will be happened when the plugin will unavailable or uninstall?
if anybody write
@Html.Action("YourCustomCategoryNavigation", "YourPluginController", new { currentCategoryId = currentCategoryId, currentProductId = currentProductId })
and the plugin is not exist then the above method will not work.
And also error occurred!!!!!
obviously it will occur error as action is exist at plugin controller and at beginning I also told that it can be handle by widget plugin. If anybody do this by widget plugin then after uninstall the plugin the application run as it run before.