Results 1 to 3 of 3
  1. #1
    Join Date
    Mar 2006
    Posts
    8
    Plugin Contributions
    0

    Default Creating a new section in admin

    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?

  2. #2
    Join Date
    Apr 2006
    Location
    London, UK
    Posts
    10,569
    Plugin Contributions
    25

    Default Re: Creating a new section in admin

    Quote 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.
    Kuroi Web Design and Development | Twitter

    (Questions answered in the forum only - so that any forum member can benefit - not by personal message)

  3. #3
    Join Date
    Mar 2006
    Posts
    8
    Plugin Contributions
    0

    Default Re: Creating a new section in admin

    That's awesome. Something simple enough, would have taken me forever.

    I thought the 'extra_boxes' was for adding something to the 'Layout Boxes Controller'.

    Thanks!

 

 

Similar Threads

  1. Creating New Admin Editable Buttons?
    By Xena in forum Templates, Stylesheets, Page Layout
    Replies: 18
    Last Post: 13 Mar 2014, 01:00 AM
  2. v151 Bulk emails sent through the admin section creating error message
    By webmiss in forum General Questions
    Replies: 2
    Last Post: 12 Dec 2013, 06:51 PM
  3. New Customers section of admin - names missing
    By largomike1 in forum Upgrading from 1.3.x to 1.3.9
    Replies: 2
    Last Post: 24 Mar 2011, 06:09 PM

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •  
disjunctive-egg
Zen-Cart, Internet Selling Services, Klamath Falls, OR