2008-09-30 55 views
0

我可以獲取rootmenuitemlefthtml和rootmenuitemrighthtml以發出但不分隔符。試過CDATA包裝和設置SeparatorCssClass。我只想要根菜單項之間的管道。DotNetNuke skin.ascx上的SolPartMenu中的分隔符屬性不起作用

<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" /> 

回答

2

雖然不是直接的答案 - 您可能想轉移到DotNetNuke菜單而不是使用SolPart。 SolPart已不再受官方支持,並且該菜單的開發工作在兩年前停止。 SolPart的作者Jon Henning從頭開始編寫DotNetNuke菜單,並嘗試解決原始SolPart菜單中的許多缺點。

+0

感謝。我會嘗試的。 – Hafthor 2008-10-06 23:56:25

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; 
}