Desarrollo de un módulo: Difference between revisions

Jump to navigation Jump to search
Line 100: Line 100:
Para ello, vaya al archivo descriptor del módulo creado anteriormente y modifique la tabla $this->tabs:
Para ello, vaya al archivo descriptor del módulo creado anteriormente y modifique la tabla $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
// where element can be
                            '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 objecttype can be
// 'thirdparty'      to add a tab in third party view
// 'thirdparty'      to add a tab in third party view
// 'intervention'    to add a tab in intervention view
// 'intervention'    to add a tab in intervention view

Navigation menu