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, ...using 2 instances of the solpart menu in a skinusing 2 instances of the solpart menu in a skin
Previous
 
Next
New Post
2/13/2007 6:06 AM
 

Hi there

I have a design that calls for 2 sets of expandable menu systems (like the solpartmenu). Is there any way that I can do this with DNN ? I have read in the skinning DNN pdf that you can have seperate instances of an object, as long as they are referenced properly (like [menu:1] , [menu:2], etc. Can you do this with the solpart menu ? And if so, how do you specify which instance the page must be attached to when you create it ? As you can see from the design mock below, there are 2 seperate instances - one horizontal with a drop down submenu, and one vertical with a horizontal expanding sub  menu.

 
New Post
2/13/2007 3:45 PM
 

Yes, this can be done.

The "how" depends on your skinning method... HTML/XML, or ASCX mode.  Which is your flavor?

 

 

 
New Post
2/13/2007 5:37 PM
 

Hi Sam

I can do either. Let me guess - it must be done in ascx mode - is that right ? If so please explain.

Thanks

Sian

 
New Post
2/13/2007 6:47 PM
 

It's good that you can do either - so I'll show you in .ascx and you can go from there:

In the top section of the page, register SolPartMenu twice - something like this:

<%@ Register TagPrefix="dnn" TagName="SOLPARTMENU1" Src="~/Admin/Skins/SolPartMenu.ascx" %>
<%@ Register TagPrefix="dnn" TagName="SOLPARTMENU2" Src="~/Admin/Skins/SolPartMenu.ascx" %>

Then put your menus in place using those TagNames you registered as the "id=":

<dnn:SOLPARTMENU runat="server" id="dnnSOLPARTMENU1" Display="Horizontal" SeparateCss="True" rootmenuitembreadcrumbcssclass="MainMenu_MenuItemSel" rootmenuitemactivecssclass="MainMenu_MenuItemSel" rootmenuitemselectedcssclass="MainMenu_MenuItemSel" submenuitemselectedcssclass="MainMenu_SubMenuSel" submenuitemactivecssclass="MainMenu_SubMenuAct" rootmenuitemrighthtml="&nbsp;&nbsp;" />

<dnn:SOLPARTMENU runat="server" id="dnnSOLPARTMENU2" Display="Vertical" SeparateCss="True" blah, blah...

-------------------------------------------------------------------------------------------------------------
To do this using HTML/XML, you'd need to have two separate SolPartMenu <object>'s listing each needed parameter (Display, SeparateCss, etc.) in the xml file, but in this case you would use SOLPARTMENU:1 and SOLPARTMENU:2 so the parse engine knows what to do.

Hope this helps!

 

 
New Post
2/15/2007 12:49 PM
 

Hi again

When I try this, I get two instances displayed, but they are both the same menu. I need to have each instance as a seperate root menu. In other words, when I add a page, I should be able to specify which menu object to attach to. How would I get around this ?

Thanks for the help so far.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...using 2 instances of the solpart menu in a skinusing 2 instances of the solpart menu in a skin


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