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 ...Collapsing menusCollapsing menus
Previous
 
Next
New Post
8/4/2011 10:41 PM
 
Myrkul,

What menu are you using. This could get you the right help you may need.
 
New Post
8/4/2011 10:53 PM
 
Not sure what you mean by what menu I'm using... I'm using the MinimalExtropy skin...
 
New Post
8/4/2011 10:58 PM
 
Currently upgrading to version 6, then I'll try cathal connolly's instructions.
 
New Post
8/4/2011 11:00 PM
 
This code is pulled directly from the "index 1024.ascx" skin file.

What you may be looking for is to load one modified menu for logged in users, and another for guests. Something like this for guests:
<% If Not Request.IsAuthenticated then %>
<dnn:NAV runat="server" id="dnnNAV"  ProviderName="DNNMenuNavigationProvider" IndicateChildren="false" ControlOrientation="Horizontal" CSSControl="mainMenu" />
<% end if %>

And for Registered Users:
<% if UserController.GetCurrentUserInfo().IsInRole("Registered Users") then %>
<dnn:NAV runat="server" id="dnnNAV"  ProviderName="DNNMenuNavigationProvider" IndicateChildren="false" ControlOrientation="Horizontal" CSSControl="mainMenu" />
<% end if %>

Mind you though, this is not the most elegant way, but it will only show one instance of your menu to guests, based on how you want it displayed, and another for registered users based on how you want it displayed. You can also encapsulate more html as needed into each one if you've already done some modifications to how each menu displays.

 
New Post
8/4/2011 11:10 PM
 
No, I haven't done any modifications to how each menu displays. I have no clue how to do that. Your two segments of code are identical, besides the conditions. I'm not a programming expert, but I'm not stupid either - I know that that code will do the same thing whether or not you're logged in. I'm guessing I have to change the part that says CSSControl="mainMenu" ? I can just make a guestMenu file with the required changes? Where is this mainMenu file, so I can start looking through it and try to tweak it?
 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Administration ...Administration ...Collapsing menusCollapsing menus


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