Tabs system: Difference between revisions

Jump to navigation Jump to search
Line 27: Line 27:
Then to add your tab, create a new module descriptor file. See page [[Module development]] for this.
Then to add your tab, create a new module descriptor file. See page [[Module development]] for this.


Then into the descriptor file, edit the property this->tab to add your tab using syntax provided by example:
Then into the descriptor file, edit the property this->tab to add your tab using following syntax:
$this->tabs = array(
'objecttype:+tabname:TitleOfTab:@mymodule:conditiontoshowtab:urloftab?id=__ID__'
);
 
Example:
<source lang="php">
<source lang="php">
$this->tabs = array(
$this->tabs = array(
Line 34: Line 39:
);
);
</source>
</source>
Activate module
Test new tabs is visible and link open your page.


= To remove an existing '''tab''' =
= To remove an existing '''tab''' =

Navigation menu