Originally Posted by
lrohenaz
How do you just add a new section in the admin? I'm trying to get some of the basic work done for a module I am attempting to write, but I cant figure out how to just add a new item under Tools menu. Can someone help me out with this?
Create your module called say "mymod.php".
Create a file called "mymod_tools_dhtml.php" with the following code
PHP Code:
<?php
/**
* @mymod_tools_dhtml.php
* @call to include mymod link in admin->tools
*
* @author
* @copyright
* @license http://www.gnu.org/licenses/gpl.txt GNU General Public License V2.0
* @version $Id: mymod_tools_dhtml.php version no, date
*/
$za_contents[] = array('text' => BOX_TOOLS_MYMOD, 'link' => zen_href_link(FILENAME_MYMOD, '', 'NONSSL'));
?>
and put it in admin\includes\boxes\extra_boxes
create a file called mymod_data.php with the following code
PHP Code:
<?php
/**
* @mymod_tools_data.php
* @defines for mymods
*
* @author
* @copyright
* @license http://www.gnu.org/licenses/gpl.txt GNU General Public License V2.0
* @version $Id: mymod_tools_dtata.php version no, date
*/
define ('BOX_TOOLS_MYMOD', 'My Mod');
define ('FILENAME_MYMOD','mymod');
?>
and put it in admin\includes\extra_datafiles
More experienced forum members may suggest minor modifications to this, but overall I believe this should work.
Bookmarks