Widget Introduction
From Aikiframework wiki
| +This section is incomplete. You can help by expanding it. |
How to create a new Widget
- Install Aikiframework and log into admin area.
- URL's and Widgets will be selected by default, press Create Widget
- This presents you with a 'new widget' dialog box that you can use to define the most important fields of the widget.
The New Widget editor
Each widget is created as html div by default in the basic editor. you can change this in the advanced mode.
widget name - Name of the widget (is also the id of the element).
widget target - where in the document the widget is to appear, default is inside the body tag. Another option is to put the widget in the head, which will allow you to add things like meta data, etc.
Widget Address(url) - This is where you can define what URL's the widget appears in, if the URL does not exist it is created. Separate multiple entries the '|' character (example: homepage|home|start).
Widget - Where you put your html, also any aiki markup to interact with a database and more..
CSS - This is where any needed css should be placed. Useful if you are using a div structure and need to markup elements based on that, on a page-by-page basis. If you have elements that appear everywhere (or often enough) on the site, then it is most prudent to add these styles to the global styles so they will be available to every document, and the css becomes easier to manage.
SQL Select Query - For SQL queries if the page you are creating accesses a database.
Records in Page - You can define how many records to display per page, if you are accessing database records.
Link Example - This field is used when you have defined a "records in page" value to allow for automatic pagination. Its value is used to create the links needed to move between pages of results.
Example : widget_title/?page=[page]
is Active - A simple box to turn a widget to on or off.

