Module development: Difference between revisions

Jump to navigation Jump to search
m
Line 299: Line 299:
'''When''': If your module need to provide one or several new boxes to show on home page.
'''When''': If your module need to provide one or several new boxes to show on home page.


{{ToTranslate}}
== Define your box ==
== Define your box ==
For this, modify the array $this->boxes into the module descriptor file.
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'''
All you have to do is to add one line for each box file you will create into directory '''htdocs/includes/boxes'''


''Exemple:''
''Example:''
<source lang="php">
<source lang="php">
this->boxes[0][1]='mybox0.php'
this->boxes[0][1]='mybox0.php'

Navigation menu