Widget system: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
mNo edit summary |
||
| Line 1: | Line 1: | ||
{{TemplateDocDevEn}} | {{TemplateDocDevEn}} | ||
A box is a file placed into a particular directory and that allows to add new informations in a rectangular area on some pages like the home page. | |||
= [[File:art.png]] Create a new box = | |||
Every box is stocked inside the directory '''htdocs/include/boxes'''. | Every box is stocked inside the directory '''htdocs/include/boxes'''. | ||
There is one file for each box. | There is one file for each box. | ||
| Line 6: | Line 9: | ||
Each file is a PHP class that herits the class '''ModeleBoxes'''. | Each file is a PHP class that herits the class '''ModeleBoxes'''. | ||
To create a new box, copy an existing box file and rename it. | To create a new box, copy an existing box file and rename it. | ||
Then change its content to match the new name and to define informations you want to show by the box. | Then change its content to match the new name and to define informations you want to show by the box. | ||
= [[File:art.png]] Activate a box = | |||
To activate a box, go on page '''Home - Setup - Boxes''' and click on activate on box you want to see. The page will appears on page for which you activate the box. | |||
Revision as of 13:04, 4 August 2009
A box is a file placed into a particular directory and that allows to add new informations in a rectangular area on some pages like the home page.
Create a new box
Every box is stocked inside the directory htdocs/include/boxes. There is one file for each box.
Each file is a PHP class that herits the class ModeleBoxes.
To create a new box, copy an existing box file and rename it. Then change its content to match the new name and to define informations you want to show by the box.
Activate a box
To activate a box, go on page Home - Setup - Boxes and click on activate on box you want to see. The page will appears on page for which you activate the box.