Jump to content

How to keep sidebar in admin area minimised by default


caisc

Recommended Posts

At this time this isn't possible

Chris, you do realise that sentence is like a red rag to a bull with me ? :evil:

 

I very quickly came up with two ways to do this - either as a 1-line template edit or an action hook... i'll give you both. :idea:

 

at the beginning of admin/templates/blend/header.tpl, you could simply add the line...

 

{assign minsidebar true}

or if you want to use a hook (the better option), you could just create a .php file in /includes/hooks and paste the following into it...

 

<?php

function hook_admin_minimise_sidebar($vars) 
{
   return array("minsidebar" => true);
}
add_hook("AdminAreaPage", 1, "hook_admin_minimise_sidebar");
?>

either method automatically minimises the sidebar on every page of the admin area - you can still open the sidebar on any page by clicking the tab link, and when you go to another admin page, the sidebar will again be minimised by default. :idea:

 

btw - if I had £1 for every time someone from WHMCS support told me something couldn't be done in WHMCS when it can.... :roll:

Link to comment
Share on other sites

Join the conversation

You can post now and register later. If you have an account, sign in now to post with your account.

Guest
Reply to this topic...

×   Pasted as rich text.   Paste as plain text instead

  Only 75 emoji are allowed.

×   Your link has been automatically embedded.   Display as a link instead

×   Your previous content has been restored.   Clear editor

×   You cannot paste images directly. Upload or insert images from URL.

  • Recently Browsing   0 members

    • No registered users viewing this page.
×
×
  • Create New...

Important Information

By using this site, you agree to our Terms of Use & Guidelines and understand your posts will initially be pre-moderated