Close

Custom Widget Zones

bsgcraft
6 years ago
#14413 Quote
Avatar
  • 49
I am having an issue creating new widget zones for this plugin.  What I have done so far is added the widget zones in the supportedwidgetzones.xml file and now they show up in the dropdown within the plugin. I am able to assign a html widget to the zone I created. I then added @Html.Widget("custom-widget-zone") within a new shared view called _ColumnsTwoCA and I also created a new topic template to use this view.  I then added this new template to the topic template and mapped it so I can assign the topic page to this template.  However the content is not rendering where I place this code. I know I have everything set up because if I set the HTML Widget to main_column_after and then replace @Html.Widget("custom-widget-zone") to @Html.Widget("main_column_after") the content is displayed.  What am I missing?
Nate Kindom
bsgcraft
6 years ago
#14414 Quote
Avatar
  • 49
I believe I have solved the issue. I needed to restart the application.
Nate Kindom
SDobrev
6 years ago
#14416 Quote
Avatar
  • Moderator
  • 283
Hi,

All your steps are correct, so maybe the IIS has cached the files and restarting the application resolved your problem.
Best Regards,
Stoyan Dobrev
Nop-Templates.com