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

HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How can I remove(or hide some Items) in admin pop up menu?How can I remove(or hide some Items) in admin pop up menu?
Previous
 
Next
New Post
7/2/2007 5:53 AM
 
Hi 2 all
for some reasons I want to limit some item for administrator
for example I want administrator not to see the vendor page or site log
how can I remove(or hide them) in admin pop up menu?
thank you in advance

I mean I wanna change this to this
 
New Post
7/2/2007 4:45 PM
 

There is a file called "Hardening DotNetNuke Installations.pdf" in the DotNetNuke documentation... one of the items in there mentions "removing portal functions" and specifically gives this example:

"To remove the function, you will have to delete it from the correct table e.g."

"delete from tabs where tabname='sql'..."

I'd take a look at that on the database level (PLEASE make a backup before you do) and see what you can accomplish.  My guess is you will be able to do something similar like "delete from tabs where tabname='vendors'"


-- Jon Seeley
DotNetNuke Modules
Custom DotNetNuke and .NET Development
http://www.seeleyware.com
 
New Post
7/2/2007 8:25 PM
 

Hi benham-ut,

I looked and looked forever to find a solution for this.  The answer is that there are two ways to do it.  One is very simple, but has a problem and one is through SQL and works perfectly.

The "simple" method is this.

Each menu in the Admin list is a sequentially numbered tab ID.  For example, if the top item "Site Settings" as a Tab ID number of 88, then the next Tab ID number will be 89 and so on for each item.

To reach the page setting area to mark the page "Hidden" simply insert " ctl/Tab/action/edit/ " in between the Tab ID number and " Default.aspx "  Then mark the page hidden or disabled as you like in it's settings area. The URL string to use to access one of these pages would look like this. http://www.yourdomain.com/Admin/SiteSettings/tabid/88/ctl/Tab/action/edit/Default.aspx 

The problem with this method is that it makes the page visible in the pages module and removes it from the Admin menu as well.  The problem then being that the Admin you are trying to hide it from can access it there.

The SQL method is this, and it works perfectly.

SQL solution:
 

This permits the "hiding" of menu items in the Admin menu, and DOES NOT remove them from the menu.  

To "hide" an Admin Menu Item and make it unavailable in the list you must use the following SQL Script or it will create the problem of making that item available in the Tabs management page.

 
Make a note of each Item you change incase you want to restore it later.
 
SQL Script for hiding Admin Pages without removing them from the admin menu.
 
To Hide one in the menu.

<code>

UPDATE Tabs
SET
IsVisible = 1
WHERE (tabname = ' The Menu Item Name You Want To Hide' AND PortalId={PortalID})


To Reveal one in the menu just reverse it.

UPDATE Tabs
SET
IsVisible = 0
WHERE (tabname = 'Menu Item Name You Want To Hide'  AND PortalId={PortalID})

</Code>

Hope it helps,
Clay

 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How can I remove(or hide some Items) in admin pop up menu?How can I remove(or hide some Items) in admin pop up menu?


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