Any help for adding custom Widget zone in 2.65?

This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.
Il y a 11 ans
I'd like to learn how to add custom Widget zone in 2.65. There is one thing called Html.Widget but I am not sure what's the difference between Html.Action("WidgetByZone",...");

Thanks in advance.
Il y a 11 ans
They are the same
Il y a 11 ans
So If I want to add a custom widget, where also should I add it besides @Html.Widget(); thing? Any other file which acts like a widget registerer?
Il y a 11 ans
atarikg wrote:
So If I want to add a custom widget, where also should I add it besides @Html.Widget(); thing? Any other file which acts like a widget registerer?


@Html.Widget() register the place as a Zone that can 'host' a Widget. Then in the Configure Widget admin page, you can choose which Zone the Widget gets rendered at. You don't need to define custom Widget Zone if you create a custom Widget. You only need to define custom Widget Zone only if the default zones are not sufficient.

In short, don't confuse between Widget Zone and Widget. :D
This topic was automatically closed 365 days after the last reply. New replies are no longer allowed.