In this tutorial you'll learn how to create widgets and get an insight of the general structure of Widgetkit.
After you've installed Widgetkit, it will be available from the backend of your CMS. Both in Joomla and WordPress, Widgetkit adds its own administration interface where you can create new Widgets and manage existing ones.
In Joomla, the Widgetkit administration can be accessed from Components » Widgetkit. In WordPress, you can find the same interface under the Widgetkit section in the backend navigation.
In addition to the stand alone interface, you can also use Widgetkit inside a lightbox right from your content. Inside an article or component, you can click the Widgetkit button to open the Widgetkit lightbox. All settings and options from the stand alone interface are available in this editor as well.
In order to create a new widget or insert an existing one, follow these steps:
Shortcodes are a very popular concept from WordPress which allows you to easily publish dynamic content without any programming knowledge. Basically you insert a shortcode in a WordPress post or Joomla article, and it will be rendered as a widget, for example a slideshow which loads dynamic content from your CMS.
All shortcodes include the id and the title of the widget that you want to display.
[widgetkit id="1" name="My Slideshow"]
If you want to edit your widget afterwards, you need to click inside the shortcode before hitting the Widgetkit button. Otherwise, you can only create a new widget.
Widgetkit also provides a WordPress Widget or Joomla module. In WordPress, go to Appearance » Widgets and drag and drop the Widgetkit widget to any theme position. In Joomla, create a new Module in the Module Manager and select Widgetkit as the Module Type. The editor will then display a Select Widget button which opens the Widgetkit dialog.