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 ...Bringing File Manager to any rolesBringing File Manager to any roles
Previous
 
Next
New Post
11/26/2008 1:28 PM
 

Saran wrote
Hi Mamlin,
The trick works great!! Did you notice the control panel being displayed at the top when a normal user clicks on File Manager tab??  (which allows user to switch to View, Edit, Design mode). How can i hide control panel from displaying when any one from FileAdmin group clicks on File Manager tab. But the control panel should be visible if any one from Administrator role group clicks on File Manager Tab...

Is that doable, kindly let me know.. Thanks a lotttt!!



I'll look into that some more but it will probably take a few days (at least) for me to respond -- I'm tied up in a time-critical project at the moment plus I'll be away from things for the next few days on holiday with family.


esmamlin atxgeek.me
 
New Post
12/5/2008 3:34 PM
 

Ok, Saran-
I verified the quirk you described (Control Panel showing at top of FILE MANAGER page for non-page-editor roles) and have one method of getting around it.  I've updated my original blog posting with an optional step #7 which I'll repost here:
 

7. (THIS STEP IS OPTIONAL) One quirk with this is that those who get "EDIT" rights to the FILE ADMIN module will also end up getting a partial CONTROL PANEL display (the admin/page editor bar across the top of the page, above the skin).  This is unnecessary and potentially confusing.  It doesn't hurt anything, but if you'd prefer it to not appear you can add the following lines to the very bottom of your DNN skin file (sorry - this won't work from inside a Text/HTML module or from within a page's Header Tags setting).  Note that if you copy-and-paste this code directly you'll need to remove the extra space just after each "<" and just before each">":
 
< % If Not DotNetNuke.Security.PortalSecurity.IsInRoles(PortalSettings.AdministratorRoleName) % >
   < style >.ControlPanel{display:none}< /style >
< %  End If  % >

 
You'll need to add additional checks for any page-editor roles you've created.  For instance, if you created a page-editor role named "Editor" you'd use the following:

< % If Not (DotNetNuke.Security.PortalSecurity.IsInRoles(PortalSettings.AdministratorRoleName) OR
            DotNetNuke.Security.PortalSecurity.IsInRoles("Editor")) % >
   < style >.ControlPanel{display:none}< /style >
< %  End If  % >

 

Please note that this will hide any HTML element using the CSS class "ControlPanel".  If you really want to be safe and confine this change to the File Manager page you should create a second copy of your skin's .ASCX file (just rename the copied ascx and place it in the same directory as the original), add the code above and apply the renamed skin to the File Manager page.
 
 
-mamlin


esmamlin atxgeek.me
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Bringing File Manager to any rolesBringing File Manager to any roles


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