Close

Custom Widget Zones

jkeeler
one year ago
#14413 Quote
Avatar
  • 47
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?
jkeeler
one year ago
#14414 Quote
Avatar
  • 47
I believe I have solved the issue. I needed to restart the application.
SDobrev
one year ago
#14416 Quote
Avatar
  • Moderator
  • 272
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