This is handy if you have lots of menu items and want the classic left sidebar menu type layout. This isn't perfect by any means but works great when accessing your Knack app directly.
Change the app-menu background color to the color set in app settings > Layout & Colors > Tab Menu.
Customise the width of the sidebar by changing the 180px figure.
Current Problems
So far the print link of any page will also scale the scene as on the screen in any print output and I’m sure there’s a fix for that. The left sidebar height is set as the screen height minus 60px which is the top panel height, that might change if you use a custom logo and I’m sure a complete JavaScript solution would cover that issue.
Jonathan work is really good, but the code in his community post do not work... And it s still too tricky for me right now (need to improve my CSS skills :D)
so i like the Brad approach wich is quite easily understandable. i would like to go first on that... and try to make my lists expanded...
i guest i need to set all ul and li menu items with display:block property and went for .app-menu-list-mobile {display:block !Important;} .kn-dropdown-menu {display:block !Important;} .kn-dropdown-menu-list {display:block !Important;}
but items are still one over the other... what do i miss please :)
I would like to use that side menu, but i am also using dropdown menus, and would like dropdown items to be always visible, not only after clicking the subitem...
any ideas on how to make side menu always fully expanded?
A different approach here to make this work in the new theme - this simply forces the mobile menu to be displayed permanently at widths > 768px, and happily doesn't require javascript at all.
Other things this does:
Sets the sidebar below the app title.
Hides the mobile account settings (.kn-mobile-account-container) - they remain in under the app title bar.
Sets the scene to scroll vertically so the app menu and sidebar stay locked.
Hides the usual horizontal menu (#kn-app-menu).
Allows the usual mobile menu to work for widths < 769px.
Hi Marc, thanks for the feedback - the more we share the better Knack gets!
The script will need targeting the beta theme div ids to make it work - I'm short of time just now but I'm confident all it will take is some Chrome inspector time and testing to find the ids and modify the script.
This is great for the changing the main top menu to the side in the app. Can you tell me how I would keep the top menu horizontal, and only change the TAB MENUS into vertical layout instead? I'm not great at the coding side, so any help is appreciated.
Sorry for not providing more clarity. Try putting all of the existing css that you used to move the menu to the side within the brackets. Basically, this will make it only follow those css rules if the min width is at least 480. If it's on a smaller screen, it will ignore the rules, and follow the default layout that knack has set up for smaller screens. Try tweaking the 480 number if necessary to ensure it works the way you want on each screen.