Writing a new widget is easy! Just create a copy of one of the PHP files in
xs/extensions/widgets and edit it to change the class name. Once it has been saved your new widget will
automatically appear in the Widget Manager.
A widget is an extension that has an interface that users can interact with via the site. In xSiteable widgets usually appear as boxes of varying sizes, with a title bar.
Hello, World! example
There is a Hello, World example here:
This widget simply outputs the text "Hello, World!", but it demonstrates the basics.
These have default values but can also be set through the widget interface using the "gui" button.
These have default values but can also be set through the widget interface using the "options" button.
This is the function that returns the innermost content of the widget. If you want the widget with windows, frames and toolbars, use GET().
This function returns the whole widget, with frames, toolbars and content. If you want just the content, use GET_content().