0

I can get rootmenuitemlefthtml and rootmenuitemrighthtml to emit but not separator. Tried CDATA wrapping and setting SeparatorCssClass. I just want pipes between root menu items.

<dnn:SOLPARTMENU runat="server" id="dnnSOLPARTMENU" Separator="<![CDATA[|]]>" SeparatorCssClass="MainMenu_SeparatorCSS"
        usearrows="false" 
        userootbreadcrumbarrow="false" usesubmenubreadcrumbarrow="false"
        rootmenuitemlefthtml="&nbsp;&lt;span&gt;&nbsp;&nbsp;&nbsp;" rootmenuitemrighthtml="&nbsp;&nbsp;&nbsp;&lt;/span&gt;" rootmenuitemcssclass="rootmenuitem"
        rootmenuitemselectedcssclass="rootmenuitemselected" rootmenuitembreadcrumbcssclass="rootmenuitembreadcrumb"
        submenucssclass="submenu" submenuitemselectedcssclass="submenuitemselected" submenuitembreadcrumbcssclass="submenuitembreadcrumb"
        CSSNodeSelectedRoot="rootmenuitembreadcrumb" CSSNodeSelectedSub="submenuitembreadcrumb"
        MouseOverAction="False" MouseOutHideDelay="0"
        delaysubmenuload="true" level="Root" />
4

2 回答 2

2

虽然不是直接的答案 - 您可能希望切换到 DotNetNuke 菜单而不是使用 SolPart。SolPart 不再受到官方支持,并且该菜单的开发工作在大约两年前就停止了。SolPart 的作者 Jon Henning 从头开始​​编写 DotNetNuke 菜单,并试图解决原始 SolPart 菜单中的许多缺点。

于 2008-10-06T10:15:01.487 回答
0

检查这个 Solpartmenu:

<dnn:SOLPARTMENU runat="server" ID="dnnHorizontalSolpart" ProviderName="SolpartMenuNavigationProvider"
    ClearDefaults="True" MenuBarCssClass="Hmain_dnnmenu_bar" MenuContainerCssClass="Hmain_dnnmenu_container"
    MenuItemCssClass="Hmain_dnnmenu_rootitem" MenuItemSelCssClass="Hmain_dnnmenu_itemhoverRoot"
    MenuIconCssClass="Hmain_dnnmenu_icon" MenuBreakCssClass="Hmain_dnnmenu_break"
    SubMenuCssClass="Hmain_dnnmenu_submenu" SubMenuItemSelectedCssClass="Hmain_dnnmenu_subselected"
    CSSNodeSelectedRoot="Hmain_dnnmenu_rootselected" MenuEffectsMouseOverDisplay="None"
    Separator="|" SeparatorCssClass="Hmain_dnnmenu_separator" UseArrows="False" UseRootBreadCrumbArrow="False" />
.Hmain_dnnmenu_separator
{
    background-color: Transparent;
    color: #C55203;
    font-family: Arial;
    font-size: 11px;
}
.Hmain_dnnmenu_bar
{
    cursor: pointer;
    cursor: hand;
    height: 30px;
    background-color: Transparent;
}
.Hmain_dnnmenu_container
{
    background-color: Transparent;
}
.Hmain_dnnmenu_rootitem
{
    background-color: #DBDBDB;
    cursor: pointer;
    cursor: hand;
    color: #C55203;
    font-family: Arial;
    font-size: 11px;
    _height: 30px;
    _padding: 5px;
    vertical-align: middle;
    text-decoration:underline;
}
.Hmain_dnnmenu_rootitem td
{
    font-family: Arial;
    font-size: 11px;
    _height: 30px;
    _padding: 5px;
    vertical-align: middle;
}
.Hmain_dnnmenu_itemhoverRoot
{
    background-color: #DBDBDB;
    color: #C55203;
    cursor: pointer;
    cursor: hand;
    font-family: Arial;
    font-size: 11px;
    _height: 30px;
    _padding: 5px;
    text-decoration:underline;
    vertical-align: middle;
}
.Hmain_dnnmenu_icon
{
    cursor: pointer;
    cursor: hand;
}
.Hmain_dnnmenu_submenu
{
    background-color: #DBDBDB;
    border: solid 1px #B7B7B7;
    cursor: pointer;
    cursor: hand;
    color: #C55203;
    font-family: Arial;
    font-size: 11px;
    text-align: left;
    text-decoration:none;
    z-index: 1000;
}
.Hmain_dnnmenu_submenu td
{
    border-bottom: solid 1px #B7B7B7;
    font-family: Arial;
    font-size: 11px;
    text-align: left;
    text-decoration:none;
}
.Hmain_dnnmenu_break
{
    font-family: Arial;
    font-size: 11px;
}
.Hmain_dnnmenu_rootselected
{
    color: #C55203;
    cursor: pointer;
    cursor: hand;
    font-size: 11px;
    font-weight: lighter;
    font-style: normal;
    font-family: Arial;
    white-space: nowrap;
    vertical-align: middle;
    text-decoration: None;
}
.Hmain_dnnmenu_submenu_itemhover
{
    background-color: #C55203;
    color: #FFFFFF;
    font-family: Arial;
    font-size: 11px;
}
.Hmain_dnnmenu_subselected
{
    background-color: #C55203;
    color: #FFFFFF;
    font-family: Arial;
    font-size: 11px;
}
于 2008-12-24T14:06:34.867 回答