Registering a new widget in Sitefinity

In addition to the standard widgets, you can use your own widgets. Before you can use them, you must register them in Sitefinity Toolbox. To register a widget, perform the following:
  1. Click Administration » Settings.
    The Basic Settings page appears.
  2. Click Advanced link.
    The Settings page appears.
  3. In the left pane, click Toolboxes » Toolboxes.
  4. Depending on what kind of widget you want to add, choose one of the following:

    Type of widget  Procedure 
    Page widget

    These are the widgets displayed in page editing mode.

    Click PageControls » Sections.
    • If you want to add the widget to an existing section, perform the following:
      1. Click this section in the navigation tree.
      2. Click Tools
        A list of all widget in this section appears.
      3. Click Create new button.
    • If you want to create a new section and add the widget to this section, perform the following:
      1. Above the list of all sections, click Create new button.
      2. Fill out the Sections form and click Save changes.
        For more information about the fields in the form, see the field descriptions below each field.

        The new section appears in the list of all sections.

      3. Click the section you have created.
      4. Click Tools » Create new.

    The widget registration form appears.

    Form widgets

    These are the widgets displayed when you create a form with the Forms module.

    1. Click FormControls » Sections » Common » Tools.
      A list of all form widget appears.
    2. Click Create new button.
      The widget registration form appears.
  5. Fill out the Tools form.
    For more information about the fields in the form, see the field descriptions below each field.

    The following screenshot displays an example for registering a custom widget (control):

    EXAMPLE: Open the widget in Visual Studio and open for editing its .cs file. Copy the namespace and the class name. Select the widget project and in properties copy the name of the project file. In Control Type, enter the following: <namespace name>.<class name>,<project file name>.

    For more information and a screenshot of registration of a user widget (control), see Adding Controls to the Toolbox.

  6. When finished, click Save changes.
    The widget is registered in the toolbox and can be used in Sitefinity.

For more information about creating widgets, see How To.

Next steps

+1-888-365-2779
sales@sitefinity.com

Related topics:

Feedback

How useful is this article?

Tell us more

Submit
Your message was successfully sent.

We appreciate your feedback.

Your message could not be sent.

OK