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...Skins, Themes, ...Skins, Themes, ...Intelligent two level horizontal menu?Intelligent two level horizontal menu?
Previous
 
Next
New Post
2/4/2010 11:49 AM
 

I have some portals setup with a skin with a two-level horizontal menu, top for root-level and bottom for child-level.  But, when browsing to child pages, it screwed up the menus because there were no child menus, so I had to create two skins, one for root-level and one for child-level.  I'd much rather have one skin that is intelligent enough to display a different menu depending on what page is showing. Is there a way to do this?

While looking at some free skins, I ran across this code (< replaced with [ so it would display):

[% If DotNetNuke.Security.PortalSecurity.IsInRoles(PortalSettings.AdministratorRoleName) %]
[dnn:SOLPARTMENU runat="server" id="dnnSOLPARTMENU" /]
[% End If %]
 

This looks like the conditional decision making that need, but I cannot figure out what options are available so I can customize this to detect if the current page is root-level or not.  Is there a list somewhere of the variables available to use in this conditional statement?

 

 
New Post
2/4/2010 3:19 PM
 

 Rather than complicating the skin set-up, would it not be easier to use a snapsis or DNN Garden menu to achieve this.

Salar

 
New Post
2/5/2010 7:20 AM
 

While installing those isn't difficult, I would think that adding a single conditional statement to the skin (that would then work with any DNN install) would be much less complicated than adding in a third-party menu to each system you intend to use the skin on.

 
New Post
3/18/2010 12:13 AM
 
Here's what I have. It is far from perfect and I haven't tested it much, but it seems to work for me. Put: [%=PortalSettings.ActiveTab.TabID %] On a page somewhere, and look at the output. It is your Active Tab ID. The ID for my Home page is "39" Then: [% If PortalSettings.ActiveTab.TabID = 39 %] ROOT [% Else %] NOT ROOT [% End If %]
 
New Post
3/18/2010 12:19 AM
 

 I did find a basic way to fix this.  Kind of a hack, but it works well enough.  I tried to post here, but it didn't seem to go.  You find an elegant solution?

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Intelligent two level horizontal menu?Intelligent two level horizontal 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