Select the search type
  • Site
  • Web
Search
You are here:  Support/Forums
Support

Bring2mind Forums

Hiding context menu items
Last Post 06/13/2013 10:43 AM by Peter Donker. 3 Replies.
Sort:
PrevPrev NextNext
You are not authorized to post a reply.
Author Messages
Sudhakar Chinnaswamy
New Member
New Member
Posts:2


--
05/31/2013 11:49 PM
How does one hide context menu items such as lock, Show Direct Link, Delete and so forth, based on user roles?

Thanks!
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
06/03/2013 11:12 AM
You'd need to make specific tweaks to the XSL file defaultmenu.resources under portal/[id]/DMX/Menus. If you're familiar with XSL you'll quickly see how it is built up and you can make tweaks in that file that will change the menu. If you change to debug mode (log in as host and select the checkbox on the main options) then you'll find the XML gets written to portal/[id]/DMX/Temp. That will help you finding what you need.

Peter
Synoptek Web Team
New Member
New Member
Posts:10


--
06/12/2013 12:19 AM
I have successfully hidden menu items using the 'IsAdmin' parameter. How can I use a specific DNN user role to determine which menu items are hidden?
Peter Donker
Veteran Member
Veteran Member
Posts:4536


--
06/13/2013 10:43 AM
The User's roles are there in clear text in the XML: UserInfo/Roles/Role

If you switch to debug mode (Main Options screen) then you can see the xml written upon every request to portals/[id]/DMX/Temp.

Peter
You are not authorized to post a reply.