分隔符属性在 DotNetNuke Skin.ascx 上的 SolPartMenu 中不起作用

发布于 2024-07-06 14:57:08 字数 1034 浏览 9 评论 0原文

我可以让 rootmenuitemlefthtml 和 rootmenuitemrighthtml 发出,但不能发出分隔符。 尝试 CDATA 包装和设置 SeparatorCssClass。 我只想要根菜单项之间的管道。

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

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=" <span>   " rootmenuitemrighthtml="   </span>" rootmenuitemcssclass="rootmenuitem"
        rootmenuitemselectedcssclass="rootmenuitemselected" rootmenuitembreadcrumbcssclass="rootmenuitembreadcrumb"
        submenucssclass="submenu" submenuitemselectedcssclass="submenuitemselected" submenuitembreadcrumbcssclass="submenuitembreadcrumb"
        CSSNodeSelectedRoot="rootmenuitembreadcrumb" CSSNodeSelectedSub="submenuitembreadcrumb"
        MouseOverAction="False" MouseOutHideDelay="0"
        delaysubmenuload="true" level="Root" />

如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

扫码二维码加入Web技术交流群

发布评论

需要 登录 才能够评论, 你可以免费 注册 一个本站的账号。

评论(2

你的往事 2024-07-13 14:57:08

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

While not a direct answer - you might want to shift to the DotNetNuke menu rather than using SolPart. SolPart is no longer officially supported and development work on this menu ceased almost two years ago. Jon Henning, the author of SolPart, wrote the DotNetNuke menu from the ground up and tried to address many of the shortcomings in the original SolPart menu.

盛装女皇 2024-07-13 14:57:08

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

Check this for 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;
}
~没有更多了~
我们使用 Cookies 和其他技术来定制您的体验包括您的登录状态等。通过阅读我们的 隐私政策 了解更多相关信息。 单击 接受 或继续使用网站,即表示您同意使用 Cookies 和您的相关数据。
原文