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 to Hide tabs under Admin solpart menuHow to Hide tabs under Admin solpart menu
Previous
 
Next
New Post
3/15/2007 3:42 AM
 

Hi Guys,
I have developed a site using the dotnetnuke 4.3 version. Now i want to hide some of tabs under Admin(solpart menu) e.g. I want that my admin can only use the “user Account” option under admin.All other options should be invisible to him. One way that i have done to resolve this issue is that I have set "IsVisible" to 0  in the tabs table manually.Is there any other approach to solve this problem. I really appreciate if somebody do some comment over it. Thank in advance.

 
New Post
3/15/2007 2:10 PM
 
I suggest to have a look at TRTControlPanel from www.DaveBuckner.com

Cheers from Germany,
Sebastian Leupold

dnnWerk - The DotNetNuke Experts   German Spoken DotNetNuke User Group

Speed up your DNN Websites with TurboDNN
 
New Post
3/16/2007 10:44 AM
 
You can modify the admin.template file in the portals/_default directory to alter how the admin menu is constructed for NEW portals.

For existing portals, I suggest changing the parentid field of the target admin tabs so that they point to the HOST tab, instead of the ADMIN tab. You will thus have the ability as a host to access these functions, while admins will not. Duplicate entries should be deleted from the admin tab collection. Because tabs are cached, you will need to recycle the asp.net process before you will see the changes.

This will need to be done directly in the database (and on the filesystem, with respect to hte admin.template file). Make a backup before you begin, and move carefuly. Proceed at your own risk :)

Brandon

Brandon Haynes
BrandonHaynes.org
 
New Post
3/17/2007 2:08 PM
 
Brandon,
Thank for your response,I like your suggestion to move admin tabs to host tabs. I have try to change my existing portal as you describe.
I have changed the parentid field of the target admin tabs so that they point to the HOST tab, instead of the ADMIN tab.i do not change anything in admin.templete file but i getting the following error

DotNetNuke.Services.Exceptions.ModuleLoadException: Item has already been added. Key in dictionary: '39' Key being added: '39' ---> System.ArgumentException: Item has already been added. Key in dictionary: '39' Key being added: '39' at System.Collections.Hashtable.Insert(Object key, Object nvalue, Boolean add) at System.Collections.Hashtable.Add(Object key, Object value) at DotNetNuke.UI.Navigation.GetNavigationNodes(DNNNode objRootNode, ToolTipSource eToolTips, Int32 intStartTabId, Int32 intDepth, Int32 intNavNodeOptions) at DotNetNuke.UI.Skins.NavObjectBase.GetNavigationNodes(DNNNode objNode) at DotNetNuke.UI.Skins.Controls.SolPartMenu.BuildNodes(DNNNode objNode) in C:\Inetpub\FAS\Website\admin\Skins\SolPartMenu.ascx.vb:line 883 at DotNetNuke.UI.Skins.Controls.SolPartMenu.Page_Load(Object sender, EventArgs e) in C:\Inetpub\FAS\Website\admin\Skins\SolPartMenu.ascx.vb:line 873 --- End of inner exception stack trace ---

Please let me know how to remove it.Thank your time to respond this post.
Waiting your response...
 
New Post
3/17/2007 6:44 PM
 
This error probably means exactly what it says -- an item is being added to the host menu hashtable that is already present. Check your host menu for duplicate entries (the file manager, for example, exists on both menus. So does Localization.). You can execute the following query to view your host menu: select * from [tabs] where parentid = . Find the host tabid by executing select * from [tabs] where tabname = 'Host'.

Remove the duplicate entries here and I think you'll be okay. If that doesn't work, restore your system to a known okay state, and move them over one by one. If THAT doesn't work, put a breakpoint at SolPartMenu.ascx.vb on lines 883 and 873, see what key is being duplicated, and take steps to prevent the occurance.

Remember, this is undocumented and unsupported territory. Proceed at your own risk.

Brandon

Brandon Haynes
BrandonHaynes.org
 
Previous
 
Next
HomeHomeArchived Discus...Archived Discus...Developing Under Previous Versions of .NETDeveloping Under Previous Versions of .NETASP.Net 2.0ASP.Net 2.0How to Hide tabs under Admin solpart menuHow to Hide tabs under Admin solpart 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