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, ...Two different solpart menus - doesnTwo different solpart menus - doesn't work for me
Previous
 
Next
New Post
8/14/2006 8:36 AM
 

Hi,

So i learned how to create skin.

I want to have two different solpart menues, with different content and design.

For the design i defined in the XML:

  • for solpartmenu:1 for exmaple:  

<Name>MainMenu_MenuContainercssclass</Name>
        <Value>MainMenu_MenuContainer_1</Value>
      </Setting>
  <Setting>

  • for solpartmenu:2 for example:

 <Token>[SOLPARTMENU:2]</Token>
    <Settings>
  <Setting>
        <Name>MainMenu_MenuContainercssclass</Name>
        <Value>MainMenu_MenuContainer_2</Value>
      </Setting>

 

and of course these CSS styles are defined - differently. But both menus appear on the same CSS style - the first solpartmenu (number 1). How come the second menu doesn't react to my new design ?...

 

Another importent question: I couldn't find any doc that explains how to define to a solpart menu it's text - means, i don't want my site's pages to be on the menu, i want to put there something else. can u tell me how do i set it?

 

Thanks,

Hadar

 
New Post
8/14/2006 11:55 AM
 

Dear tiktakit

First
In solpartmenu there is not a setting like MainMenu_MenuContainercssclass. This shall work...

<Token>[SOLPARTMENU:1]</Token>
  <Settings>
    <Setting>
      <Name>menucontainercssclass</Name>
      <Value>MainMenu_MenuContainer_1</Value>
    </Setting>
    ...
  </Settings>
... 
<Token>[SOLPARTMENU:2]</Token>
  <Settings>
    <Setting>
      <Name>menucontainercssclass</Name>
      <Value>MainMenu_MenuContainer_2</Value>
    </Setting>
    ...
  </Settings>

Second
Do you mean that you don't want to display the submenu's?...
Set the solpartmenu that he only display the root.


Vriendelijke groeten
Gilbert Vanden Borre
 
New Post
8/14/2006 9:38 PM
 
gvborre

I'm trying the same thing with a skin to see how it work...that is, trying to implement two solpart menus in the same skin using DNN 4.3.4.

I have the skin set up already, but the styles aren't responding as I think they should...obviously I must be missing something.  I'm having trouble particularly with the styles for the submenu.

I have the following styles set up for solpart 1 and solpart 2 respectively:

.submenuitemselected_1{
    border:1px #FAFCFD solid;
    font-size:11px; font-family:Tahoma;   
    font-weight:normal;
    padding:2px 7px 2px 7px;
    color:#000000;       
    background:#A9C5D5;
    border-width:1px 0px;
}
.submenu_1{
    z-index:1000;
    border:1px #A1BDCC solid;
    font-size:11px; font-family:Tahoma;
    font-weight:normal;
    color: #000000;
    background:#fafcfd;
}


.submenuitemselected_2{
    border:1px #FAFCFD solid;
    font-size:11px; font-family:Tahoma;   
    font-weight:normal;
    padding:2px 7px 2px 7px;
    color:#000000;       
    background:#A9C5D5;
    border-width:1px 0px;
}
.submenu_2{
    z-index:1000;
    border:1px #A1BDCC solid;
    font-size:11px; font-family:Tahoma;
    font-weight:normal;
    color: #000000;
    background:#fafcfd;
}

All the styles render as should, except for the font styles in the submenu_1 and submenu_2.  However, if I use a skin with only one solpartmenu, the style works fine.  If I put "td" such as ".submenu_2 TD", the font style renders as they should, but then the submenuitemselected_2 background styles don't.  Then if I put the "td" as in "submenuitemselected_2 td", again, the font styles render properly, but not the other styles.

The following is how the xml is set up for the two menus.

Again, your expert advice in this matter would be greatly appreciated.  I'm just trying out different things to get the hang of dnn skinning.

Thanks.

ltsolis

<Object>
        <Token>[SOLPARTMENU:1]</Token>
        <Settings>
            <Setting>
                <Name>Display</Name>
                <Value>Horizontal</Value>
            </Setting>
            <Setting>
                <Name>usearrows</Name>
                <Value>true</Value>
            </Setting>
            <Setting>
                <Name>userootbreadcrumbarrow</Name>
                <Value>false</Value>
            </Setting>
            <Setting>
                <Name>usesubmenubreadcrumbarrow</Name>
                <Value>true</Value>
            </Setting>
            <Setting>
                <Name>rootmenuitemcssclass</Name>
                <Value>rootmenuitem_1</Value>
            </Setting>   
            <Setting>
                <Name>rootmenuitemselectedcssclass</Name>
                <Value>rootmenuitemselected_1</Value>
            </Setting>                   
            <Setting>
                <Name>rootmenuitembreadcrumbcssclass</Name>
                <Value>rootmenuitembreadcrumb_1</Value>
            </Setting>
            <Setting>
                <Name>submenucssclass</Name>
                <Value>submenu_1</Value>
            </Setting>
            <Setting>
                <Name>submenuitemselectedcssclass</Name>
                <Value>submenuitemselected_1</Value>
            </Setting>
            <Setting>
                <Name>submenuitembreadcrumbcssclass</Name>
                <Value>submenuitembreadcrumb_1</Value>
            </Setting>
            <Setting>
                 <Name>CSSNodeSelectedRoot</Name>
                 <Value>rootmenuitembreadcrumb_1</Value>
          </Setting>
          <Setting>
                 <Name>CSSNodeSelectedSub</Name>
                 <Value>submenuitemselected_1</Value>
          </Setting>
          <Setting>
                <Name>delaysubmenuload</Name>
                <Value>true</Value>
            </Setting>
        </Settings>
    </Object>
    <Object>
        <Token>[SOLPARTMENU:2]</Token>
        <Settings>
            <Setting>
                <Name>Display</Name>
                <Value>Vertical</Value>
            </Setting>
            <Setting>
                <Name>usearrows</Name>
                <Value>true</Value>
            </Setting>
            <Setting>
                <Name>userootbreadcrumbarrow</Name>
                <Value>false</Value>
            </Setting>
            <Setting>
                <Name>usesubmenubreadcrumbarrow</Name>
                <Value>true</Value>
            </Setting>
            <Setting>
                <Name>rootmenuitemcssclass</Name>
                <Value>rootmenuitem_2</Value>
            </Setting>   
            <Setting>
                <Name>rootmenuitemselectedcssclass</Name>
                <Value>rootmenuitemselected_2</Value>
            </Setting>                   
            <Setting>
                <Name>rootmenuitembreadcrumbcssclass</Name>
                <Value>rootmenuitembreadcrumb_2</Value>
            </Setting>
            <Setting>
                <Name>submenucssclass</Name>
                <Value>submenu_2</Value>
            </Setting>
            <Setting>
                <Name>submenuitemselectedcssclass</Name>
                <Value>submenuitemselected_2</Value>
            </Setting>
            <Setting>
                <Name>submenuitembreadcrumbcssclass</Name>
                <Value>submenuitembreadcrumb_2</Value>
            </Setting>
            <Setting>
                 <Name>CSSNodeSelectedRoot</Name>
                 <Value>rootmenuitembreadcrumb_2</Value>
          </Setting>
          <Setting>
                 <Name>CSSNodeSelectedSub</Name>
                 <Value>submenuitemselected_2</Value>
          </Setting>
           <Setting>
                <Name>delaysubmenuload</Name>
                <Value>true</Value>
            </Setting>
        </Settings>
    </Object>
 
New Post
8/14/2006 10:28 PM
 
Have you thought about skinning using ASCX file? Look how easy it is to directly define the classes. For two menus in the same page, just make the id="dnnMENU2" and define different class names in your skin.css for those that will be different. ASCX saves time from having to parse, and you don't need the XML or html file.

Here's what I use in most of my skins. Note that some new attributes are defined, not in the DNN default skins. The MenuTable class allows me to define a clean background. My website currently uses this.

            <div class="MenuTable"><dnn:MENU runat="server" id="dnnMENU"
                        display="horizontal"
                        delaysubmenuload="true"
                        menueffectsmouseoverdisplay="None"
                        useskinpatharrowimages="true"
                        userootbreadcrumbarrow="false"
                        downarrow="images/menuarrow_down.gif"
                        rightarrow="images/menuarrow_right.gif"
                        menubreakcssclass="MainMenu_MenuBreak"
                        rootmenuitemcssclass="MainMenu_RootMenuItem"
                        rootmenuitemactivecssclass="MainMenu_RootMenuItemActive"
                        rootmenuitemselectedcssclass="MainMenu_RootMenuItemSel"
                        rootmenuitembreadcrumbcssclass="MainMenu_RootMenuItemActive"
                        submenuitemselectedcssclass="MainMenu_SubMenuItemSel"
                        menuitemcssclass="MainMenu_MenuItem"
                        menuitemselcssclass="MenuItemSel"
                        rightseparator="&lt;img src=&quot;images/menu_div.gif&quot;&gt;"
                        submenuitemlefthtml="&nbsp;"
                        submenuitemrighthtml="&nbsp;"
                        cleardefaults="true" /></div>

Jason Honingford - Web & Software Developer
www.PortVista.com
 
New Post
8/14/2006 11:12 PM
 

Yes, I do use the ASCX file...I only use the html and xml at startup to package the skin, and so I wanted to let anyone who wants to help what I've done from the start.

I've never used the DNNMenu control as yet.  My problem seems to occur when I try to put two solpart menus in a skin.  Separately, the css styles work fine, but when the two of them are on the same skin, the font styles do not render properly (e.g font weight, family, size, etc.)

I can't figure why that is happening.  Maybe I should give the DNNMenu a try and see what that does.

Thanks.

 
Previous
 
Next
HomeHomeUsing DNN Platf...Using DNN Platf...Skins, Themes, ...Skins, Themes, ...Two different solpart menus - doesnTwo different solpart menus - doesn't work for me


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