Results 1 to 3 of 3
  1. #1
    Join Date
    Jul 2006
    Posts
    31
    Plugin Contributions
    0

    Default Customising the Admin Menu

    I probably made this post in the wrong area, so I'm re-posting it here. Apologies.

    -----

    I see there have been a couple of posts regarding this topic, but not my particular question.

    I would like to customise the Admin menu, since there are going to be more administrators for my store than myself, yet I want to control what areas of the backend they can access. I am aware that simply removing links from the menu will not prevent a user from accessing an area - all they would need to do is type in the right URL and they're in. Regardless, I'm not concerned about security, I just want to stop admins clicking on things they don't know anything about.

    I see that the files responsible for the DHTML menu are in 'admin/includes/boxes'. For the most part, removing links (or adding if you wanted to) is easy enough, achieved simply by opening the desired menuname_dhtml.php and commenting out the link you want to remove, such as:

    Code:
    // $za_contents[] = array('text' => BOX_GV_ADMIN_QUEUE, 'link' => zen_href_link(FILENAME_GV_QUEUE, '', 'NONSSL'));
    But the Configuration menu is different, since rather than listing each link individually, the menu is built with the following database query:

    Code:
    $configuration_groups = $db->Execute("select configuration_group_id as cgID, configuration_group_title as cgTitle from " . TABLE_CONFIGURATION_GROUP . " where visible = '1' order by sort_order");
    As the query is selecting rows where visible = '1', this would suggest that there is an option in the Admin somewhere to set visible to 0 for a particular configuration. Is this correct?

    If not, I can still achieve the desired effect by modyfing the database manually, in the table TABLE_CONFIGURATION_GROUP (typically zen_configuration_group).

    A suggestion: implementing admin templates and having the menu customised on a per-user basis (ala Joomla!) would be great.

    Cheers.

  2. #2
    Join Date
    Aug 2005
    Location
    Arizona
    Posts
    27,755
    Plugin Contributions
    9

    Default Re: Customising the Admin Menu

    Don't re-invent the wheel...learn to search instead.

    what you want I am fairly sure is covered in this mod:
    Admin Profiles
    Zen-Venom Get Bitten

  3. #3
    Join Date
    Jul 2006
    Posts
    31
    Plugin Contributions
    0

    Default Re: Customising the Admin Menu

    Sure sounds like it. Thanks a lot.

 

 

Similar Threads

  1. Customising the Admin/Product entry page?
    By TouranMan in forum General Questions
    Replies: 7
    Last Post: 11 Aug 2009, 10:58 AM
  2. Admin receipt customising
    By attroll in forum General Questions
    Replies: 0
    Last Post: 18 Dec 2008, 06:22 PM
  3. Replies: 0
    Last Post: 25 Apr 2007, 05:05 PM
  4. Customising the Admin Menu
    By eccentric in forum Customization from the Admin
    Replies: 1
    Last Post: 28 Jul 2006, 05:04 AM

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