caisc Posted January 26, 2017 Share Posted January 26, 2017 (edited) Hi, How to keep sidebar in admin area minimised by default. Every time it remains open on logging in and I have to minimise it. Thanks Edited January 26, 2017 by caisc 0 Quote Link to comment Share on other sites More sharing options...
bear Posted January 26, 2017 Share Posted January 26, 2017 I've wanted that for many versions now. Would be very interested if that can be done. 0 Quote Link to comment Share on other sites More sharing options...
WHMCS ChrisD Posted January 27, 2017 Share Posted January 27, 2017 At this time this isnt possible 0 Quote Link to comment Share on other sites More sharing options...
brian! Posted January 27, 2017 Share Posted January 27, 2017 At this time this isn't possible Chris, you do realise that sentence is like a red rag to a bull with me ? 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. 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. btw - if I had £1 for every time someone from WHMCS support told me something couldn't be done in WHMCS when it can.... 0 Quote Link to comment Share on other sites More sharing options...
Recommended Posts
Join the conversation
You can post now and register later. If you have an account, sign in now to post with your account.