Développement module: Difference between revisions

Jump to navigation Jump to search
Line 113: Line 113:
Pour cela, aller dans le fichier descripteur de module précédemment créé et modifier le tableau $this->tabs:
Pour cela, aller dans le fichier descripteur de module précédemment créé et modifier le tableau $this->tabs:
<source lang="php">
<source lang="php">
// Array to add new pages in new tabs
// Array to add new pages in new tabs or remove existing one
$this->tabs = array('element:TabTitle:@mymodule:/mymodule/mynewpage.php?id=__ID__');
$this->tabs = array('objecttype:+tabname1:Title1:@mymodule:/mymodule/mynewtab1.php?id=__ID__',  // To add a new tab identified by code tabname1
                            'objecttype:+tabname2:Title2:@mymodule:/mymodule/mynewtab2.php?id=__ID__',  // To add another new tab identified by code tabname2
                            'objecttype:-tabname');                                                     // To remove an existing tab identified by code tabname
 
// where element can be
// where element can be
// 'thirdparty'      to add a tab in third party view
// 'thirdparty'      to add a tab in third party view
Line 126: Line 129:
// 'member'          to add a tab in foundation member view
// 'member'          to add a tab in foundation member view
// 'contract'        to add a tab in contract view
// 'contract'        to add a tab in contract view
</source>
</source>


Navigation menu