Products

Solutions

Resources

Partners

Community

Blog

About

QA

Ideas Test

New Community Website

Ordinarily, you'd be at the right spot, but we've recently launched a brand new community website... For the community, by the community.

Yay... Take Me to the Community!

Welcome to the DNN Community Forums, your preferred source of online community support for all things related to DNN.
In order to participate you must be a registered DNNizen

HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DNN 7 - Hide Control PanelDNN 7 - Hide Control Panel
Previous
 
Next
New Post
1/4/2013 9:24 AM
 
OMG...OK no div

div id="ControlPanel" runat="server" visible="false" /div

fill in the blanks! :-)
 
New Post
1/4/2013 9:26 AM
 
ARRGGG!!... again!!...create a div with this as attributes...but like I say it' only in DNN6 this works

id="ControlPanel" runat="server" visible="false"
 
New Post
2/4/2013 2:51 PM
 

Hello,

As a final follow-up to this, I tracked it down in the code and no, at this time, you cannot remove the command bar using normal methods. 

The easiest way to do it is to put "dnnprintmode=true" in the url - that will hide it by making the page think it is being printed. Obviously, that's a rough solution. So, I submitted a support request to have a new parameter option added that only removes the command bar. 

http://support.dotnetnuke.com/issue/ViewIssue.aspx?id=24342&PROJID=2

That's been triaged for now and we'll see where it ends up.

Thanks,

Mike

 
New Post
2/17/2013 5:13 AM
 

I just upgraded a bunch of sites to DNN7 and have a few pages that are meant to be "full screen".  The new DNN7 control bar gets in the way in these circumstances and I too find myself needing to hide the control panel in some cases.  

My solution was to add CSS to the page where I want to hide the control bar.  I know CSS was referenced as a non-ideal solution in the context of this thread, but I don't see why it's not ideal.  Either way, hopefully this response helps someone who considers a CSS fix "ideal" (like me!).

I was able to get the CSS to hide the Control Bar ONLY if you aren't in Edit mode.  So if you go into the page in View mode it will display full screen and hide the control bar.  However, if you enter Edit mode on a different page and click the checkbox to "Stay in Edit mode", going to the page with the different skin using my CSS hack would show the control bar because DNN is nice enough to add the "dnnEditState" class to the body element. This way, you have a way to get to module settings, add modules, etc.

The trick is making the CSS more specific than the default CSS included with DNN so your CSS takes precedence.

body #Form.showControlBar { margin-top: 0px !important; }
#ControlBar { display:none; }
div.#ControlBar_ControlPanel { height: 0px !important;}
body.dnnEditState #Form.showControlBar { margin-top: 53px !important; }
body.dnnEditState form #ControlBar { display:block; }
body.dnnEditState form div.#ControlBar_ControlPanel { height: 53px !important; }
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...DNN 7 - Hide Control PanelDNN 7 - Hide Control Panel


These Forums are dedicated to discussion of DNN Platform and Evoq Solutions.

For the benefit of the community and to protect the integrity of the ecosystem, please observe the following posting guidelines:

  1. No Advertising. This includes promotion of commercial and non-commercial products or services which are not directly related to DNN.
  2. No vendor trolling / poaching. If someone posts about a vendor issue, allow the vendor or other customers to respond. Any post that looks like trolling / poaching will be removed.
  3. Discussion or promotion of DNN Platform product releases under a different brand name are strictly prohibited.
  4. No Flaming or Trolling.
  5. No Profanity, Racism, or Prejudice.
  6. Site Moderators have the final word on approving / removing a thread or post or comment.
  7. English language posting only, please.
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out
What is Liquid Content?
Find Out