Sidebar Collapse

Hi,

I have configured PHPMaker (2020) to show sidebar (vertical menu) by default.
When a user hides the menu in list view, and goes to detail record, the menu shows again automatically and keeps showing when user goes back to list page.
Ideal situation would be when user hides the menu, it should not appear automatically until user clicks to show again… Solution?

If the above is not feasible, I know you can hide the menu by default on all pages via Advanced Settings - AdminLTE layout class = sidebar collapse.
So at least I would like to show the sidebar by default on logon-page as it contains the company’s logo.

Any idea?

wevens wrote:

Solution?

You need to write jQuery or Javascript code to handle it, and put it in “Startup Script” under “Client Scripts” → “Global” → “Pages with header/footer”.

Thanks !

I have found a suitable solution:

  • Hide the menu by default (via the advanced settings)
  • Display the logo in the main-header bar (left from the menu button) via global/pages with header/footer/startup script:
    $(“.main-header”).before(‘’);

The advantage of this setting is, that when you click the button to show the menu (with same logo on top), the logo in the main-header bar disappears :slight_smile:

wevens wrote:

[…]

  • Hide the menu by default (via the advanced settings)
    […]

I can’t find this option (v2020.0.16), what’s the name?

Advanced Settings - AdminLTE layout class = sidebar collapse.

wevens wrote:

Advanced Settings - AdminLTE layout class = sidebar collapse.

Thanks!