R2i DotNetNuke® Forum

R2i wants you to have the opportunity to ask questions, post reviews, help others or just rant and rave about DotNetNuke® or any of the R2i Modules and Skins. Our team spends hour upon hour, day after day, working on custom DotNetNuke® modules and services; please feel free to ask us anything.
 
Get Rid Of View/Edit for normal DNN users
Last Post 01 Jan 1900 05:00 AM by . 1 Replies.
Printer Friendly
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages Informative
pauldesUser is Offline
Veteran Member
Veteran Member
Posts:1392

--
18 May 2007 12:30 PM  
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.
gbrownUser is Offline
New Member
New Member
Posts:29

--
17 Aug 2008 03:20 PM  
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.

Active Forums 4.1
 

New York, NY • Baltimore, MD • Vienna, VA • St. Louis, MO • Seatle, WA • 410.327.0007 • info@R2Integrated.com

Bookmark & Share Bookmark and Share