31,040
edits
| Line 19: | Line 19: | ||
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. | ||
However if you plan to distribute your box to other users, you should instead create a module and store your box files into you module: | |||
* Go into page [[Module Development]] to know how to create a module | |||
* Copy the box file into '''htdocs/mymodule/core/boxes/''' | |||
* Once you module descriptor is created, edit it to add lines to declare your box | |||
<source lang="bash"> | |||
$this->boxes[0][0] = "(MyBoxTitle)"; | |||
$this->boxes[0][1] = "box_file.php"; | |||
$this->boxes[0][2] = $reg[1]." (".$obj->value.")"; | |||
* disable/enable the module. You should find the box appears into menu '''Home - Setup - Boxes''' | |||
= [[File:art.png]] Activate a 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. | 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. | ||