31,003
edits
| Line 300: | Line 300: | ||
{{ToTranslate}} | {{ToTranslate}} | ||
== | == Define your box == | ||
For this, modify the array $this->boxes into the module descriptor file. | |||
All you have to do is to add one line for each box file you will create into directory '''htdocs/includes/boxes''' | |||
''Exemple:'' | ''Exemple:'' | ||
<source lang="php"> | <source lang="php"> | ||
this->boxes[0][1]=' | this->boxes[0][1]='mybox0.php' | ||
this->boxes[1][1]=' | this->boxes[1][1]='mybox1.php' | ||
this->boxes[2][1]=' | this->boxes[2][1]='mybox2.php' | ||
... | ... | ||
this->boxes[n][1]=' | this->boxes[n][1]='myboxn.php' | ||
</source> | </source> | ||
Then create files mybox0.php, mybox1.php... by copying an example from an existing box file (into directory htdocs/include/boxes). | |||
== | == Test if your box is detected by Dolibarr == | ||
Disable and enabled module. | |||
Go into menu '''Home - Setup - Boxes'''. | |||
Your boxes must appear in the list of boxes you can activated. Activate the box and go on home page to see if the box is showing correctly. | |||
= [[File:Art.png]] Define your own export (optionnal) = | = [[File:Art.png]] Define your own export (optionnal) = | ||