Widget system: Difference between revisions

Jump to navigation Jump to search
Line 24: Line 24:
* Once you module descriptor is created, edit it to add lines to declare your box
* Once you module descriptor is created, edit it to add lines to declare your box
<source lang="bash">
<source lang="bash">
$this->boxes[0][0] = "(MyBoxTitle)";
$this->boxes[0]['file'] = "box_file.php";
$this->boxes[0][1] = "box_file.php";
$this->boxes[0]['note'] = "My notes";
$this->boxes[0][2] = $reg[1]." (".$obj->value.")";
$this->boxes[0]['enabledbydefaulton'] = 1;
</source>
</source>


= [[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.

Navigation menu