Hide Main menu or left menu
(Adding message template to the top of the page)
(Replacing message template with parser tag)
Line 1: Line 1:
{{message|Write the content here to display this box}}
<message>Write the content here to display this box</message>
To hide or turn off the left menu or sidebar on a ViewModel, add the [[Documentation:Tagged values in the Designer|tagged value]] <code>HideSidebar = true</code> to the ViewModel root.
To hide or turn off the left menu or sidebar on a ViewModel, add the [[Documentation:Tagged values in the Designer|tagged value]] <code>HideSidebar = true</code> to the ViewModel root.



Revision as of 07:43, 17 June 2024

This page was created by Hans.karlsen@mdriven.net on 2020-04-13. Last edited by Edgar on 2025-01-20.

To hide or turn off the left menu or sidebar on a ViewModel, add the tagged value HideSidebar = true to the ViewModel root.

A.k.a: hide left side, hide all actions for a specific page

Update 2020-06-15:

To make it easier to have page unique styles in CSS that also target items that are not part of the ViewModel (i.e. the menu, etc), we added the attribute Turnkeyview and Turnkeyviewmodal set to ViewModel name on the document root.

Example of how to hide the main menu on the page named ViewValueStore only and to make that view a pink background:

  html[turnkeyview="ViewValueStore"] #globalNavWrapper {
   visibility: hidden;
  }
 
  html[turnkeyview="ViewValueStore"] #bodyWrapper{
   background: pink;
  }
2020-06-15 19h27 45x.gif