Join our DNN Community    (Newsletter, Tips, Tricks and Forums for DNN Skins & Modules)

 


 
Microsoft Gold Certified Partner - DNN Benefactor

DotNetNuke Powered! 


Friday, November 21, 2008 Register · Login · Contact · Search:  
Company Solutions Portfolio Contact
Forums
Tips and Tricks
Discussion of the popular 'Tips and Tricks' from the Newsletter. Questions or comments regarding the provided tips, or other general tricks of the trade.
Subject: Get Rid Of View/Edit for normal DNN users
You are not authorized to post a reply.
 
Author Messages
pauldes
Immortal
Posts:1392

05/18/2007 7:30 AM Alert 
With 4.5 came the "revolutionary" hidable control panel with the view/edit toggle. As an admin, I love this, BUT the downside is a confusing and unituitive training exercise for end users who have edit capabilities in modules. They end up wondering "where did my menu go?"

One quick way to get around it, and what they did for the Forums on DotNetNuke.com is to set the cache time in module settings to -1.  That is a pretty un-intuitive way of hiding the thing. The problem here also is I THINK this messes with LISTX in some way......at least I just blindly follow Kevin's advice :) when he says NEVER set the module cache in DNN, do it in ListX instead.

Another, and more elegant way is to add the following code to you skin ascx page:

<% 
If Not DotNetNuke.Security.Permissions.TabPermissionController.HasTabPermission("EDIT") Then
ControlPanel.visible = false
End If
%>

The skin really needs to HAVE that ControlPanel area in order to be hidden. You see, if the skin doesn't have it, it still shows up the first thing on the page. However, your code dies not being able to find ControlPanel...

So,  add a TD tag with id="ControlPanel" and runat="server" to your skin together with that code, and your unsuspected users will continue to be clueless but not confused.

Now....my disclaimer/credits.

I am not as brilliant as I seem. I was able to find this on a post on this subject at the forums of www.snapsis.com and thought I would pass it along here. :D

Thought it would be useful......




ListX....makes you look brilliant, even though you're not.
gbrown
Welterweight
Posts:29

08/17/2008 10:20 AM Alert 
Another solution to get rid of the view/edit toggle for module editors is to install the free TRT Control Panel from http://www.davebuckner.com/Default.aspx?tabid=56

In addition this control panel will allow you to set up view permissions by role for every button in the control panel. It also allows you to set up view permissions for each module in the add module to page drop down.
You are not authorized to post a reply.
Forums > Dotnetnuke > Tips and Tricks > Get Rid Of View/Edit for normal DNN users



ActiveForums 3.6
Latest Post
 
At R2integrated (formerly Bi4ce), we take support seriously.  That's why we support our customers and DNN community with daily monitoring from our experienced engineering team.  We ask that the first step taken is to read the relevant documentation and support forums prior to submitting any questions that may already be available or have been answered.  We ask that you review the documentation that we provide for our products before posting a question.

The Forums are for our customers to chat, exchange ideas and strategies, and submit feedback.  Please be sure to perform keyword searches for previous related forum responses.

To be helpful when submitting a new item, please include the following: 
  1. DNN Version
  2. Module Version
  3. Admin Log Viewer Information
  4. Environment detail: Operating system, .NET framework version, database and version, IIS version, Browser version (if appropriate)
We always try to respond quickly and monitor the forums daily during business hours (EST).  Occasionally, requests for a specific project requirement may not apply for the free support offered. For project specific support please submit via our Information Request form.

Thank you for using our Forums.

Click here to register for the Forums
 
© 2008 by R2integrated (formerly Bi4ce) | DNN® is a registered trademark of DotNetNuke Corporation