Skip to content

Widgets for Developers

Simonas Mikulenas edited this page May 10, 2013 · 22 revisions

In Better CMS there are two types of widgets:

  • Content widgets (simple html content that can be used on multiple pages);
  • Server widgets;

Content widgets are created via the Better CMS control panel. They are simple to create and function in a very similar way to content editing.

Server widgets are used for the website functionality that needs server side processing.

How to create server widget?

In the website project add partial view (*.cshtml) with the functionality that is needed - there is nothing special about such view.

Tip: if you would like to add all your widget functionality in to the controller action, than in partial view just call RenderAction. Please, pay attention, that Area needs to be defined.

@{ Html.RenderAction("SomeAction", "SomeController", new {Area = ""}); }

How to register server widget?

Content need to be written...

Clone this wiki locally