Widget system: Difference between revisions
Jump to navigation
Jump to search
mNo edit summary |
Rdoursenaud (talk | contribs) m (New boxes path) |
||
| Line 5: | Line 5: | ||
= [[File:art.png]] Create a new box = | = [[File:art.png]] Create a new box = | ||
Every box is stocked inside the directory '''htdocs/ | Every box is stocked inside the directory '''htdocs/core/boxes'''. | ||
There is one file for each box. | There is one file for each box. | ||
Revision as of 09:50, 19 September 2012
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/core/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.