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...Administration ...Administration ...DNN 4.5.3 view and edit mode option on top of forum, blog and wiki moduleDNN 4.5.3 view and edit mode option on top of forum, blog and wiki module
Previous
 
Next
New Post
7/17/2007 9:26 PM
 

Hello guys,

Since most of the time I log in as admin, I did not notice this until some of the member brought it to my attention.  On top of the title bar an radial button option for view or edit appears for normal register users.  I verified that the pages are set to admin edit only.  Is there a special purpose for this new added option, or am I encountering a bug, or I made a mistake somewhere in setting up?

thanks

 
New Post
7/18/2007 12:14 AM
 

Look for a module on the page that has edit permissions set for registered users.


DotNetNuke Modules from Snapsis.com
 
New Post
7/18/2007 12:16 AM
 

Also, If you need to keep the permissions for edit then you can remove the mode / edit bar by following the procedure in the following link.

http://www.snapsis.com/DotNetNuke/Support/tabid/560/forumid/12/postid/5485/view/topic/DNN-Tips-And-Tricks-5485.aspx


DotNetNuke Modules from Snapsis.com
 
New Post
7/18/2007 1:41 AM
 

Hi John,
Thanks for the link. I tried this suggestion from you DNN tips and Tricks

I have a feeling the way this has been implemented will get changed in the core, but until it does, here is an easy work-around.
Just place the following code in the skin that you are seeing this slim control bar on.

 <%
    If Not DotNetNuke.Security.Permissions.TabPermissionController.HasTabPermission("EDIT") Then
        ControlPanel.visible = false
    End If
%>
I placed this line on my skin where it seemed most proper, with the tag registeries, like this
....
%@ Register TagPrefix="dnn" TagName="Menu" Src="~/Admin/Skins/SolPartMenu.ascx" %>
<%@ Register TagPrefix="dnn" TagName="TREEVIEW" Src="~/admin/Skins/TreeViewMenu.ascx"%>
<%
    If Not DotNetNuke.Security.Permissions.TabPermissionController.HasTabPermission("EDIT") Then
        ControlPanel.visible = false
    End If
%>
and I got an error that says 'controlPanel' is not defined, So i made the controlpanel on my skin, now the error is ofcourse gone, but this 'fix' diables the panel for admins too....by using this fix I now forfeit my ability to add modules and what not.....

is there any way to have both 1) no confusing , page balance breaking, EDIT/VIEW bar 2)keep admin/host editing privilages?

Mark

 
New Post
7/18/2007 10:57 AM
 

This code only hides the control panel for users that do not have edit permissions to the tab.

You can also hide it by putting -1 in for the cachetime on the module settings.

 


DotNetNuke Modules from Snapsis.com
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...DNN 4.5.3 view and edit mode option on top of forum, blog and wiki moduleDNN 4.5.3 view and edit mode option on top of forum, blog and wiki module


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