SharePoint 导航菜单 - 多级

发布于 2024-07-14 03:21:26 字数 347 浏览 5 评论 0原文

我正在考虑将一些 Telerik 组件集成到我们的 MOSS 安装中。 我想我会一石二鸟,然后先处理导航菜单。

我对 SharePoint 还算陌生,对它的一些奇怪之处感到很恼火。

我们对导航菜单有一些要求:

  • 安全修剪
  • 多级导航

据我所知,似乎没有办法在不使用 SharePoint 开箱即用的导航设置的情况下进行安全修剪。 我错了吗?

有没有办法让这些导航设置深入两层以上?

编辑

  • 我正在使用全球导航,位于 / > 站点设置> 修改导航

I'm looking into integrating some Telerik Components into our MOSS Installation. I'd figure I would kill a few birds with one stone and work on the Navigation Menu first.

I'm slightly new to SharePoint, and pulling hair at some of it's oddities.

We have some requirements for our Navigation menu:

  • Security Trimmed
  • Multi-Level Navigation

As best as I can tell, there doesn't seem to be a way to get security trimming without using SharePoint's out of the box Navigation Settings. Am I wrong?

Is there a way to get these Navigation Settings to go more than two levels deep?

EDITS

  • I'm using the Global Navigation, located at / > Site Settings > Modify Navigation

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

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

发布评论

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

评论(3

旧伤还要旧人安 2024-07-21 03:21:26

没有使用过 Telerik 控件。

我怀疑您应该能够使用基本属性来完成此操作,例如 StaticDisplayLevels="2" ,其中 2 是您想要的数字。

我相信安全性将在控件使用的数据源上处理。

再说一次,我没有使用过 Telerik 控件,所以我确信它有点不同,查看该控件的产品信息,似乎需要弄清楚您需要调整哪些属性。 一定有一些附带的文档吗?

Haven't used the Telerik control.

I suspect you should be able to accomplish this with basic properties, something like StaticDisplayLevels="2" with 2 being the number you want.

The security I believe would be handled on your datasource that the control uses.

Again, I haven't used the telerik control so I'm sure it's a bit different, looking at the product info for this control it appears to be a matter of figuring out what the properties are that you need to adjust. There must be some documentation that came with it?

累赘 2024-07-21 03:21:26

Savageguy 是正确的,您可以在数据源上修改它,例如:

<PublishingNavigation:PortalSiteMapDataSource 
    ID="MainNavigationDataSource" 
    runat="server" 
    EnableViewState="true"
    SiteMapProvider="GlobalNavSiteMapProvider"
    StartingNodeOffset="0" 
    ShowStartingNode="false" />

然后您可以使用任何类型的控件(数据绑定)来呈现菜单。 我的菜单使用了中继器:

<asp:Repeater runat="server" ID="MenuRepeater" 
DataSourceID="MainNavigationDataSource">

Savageguy is correct that you modify this on the datasource, an example:

<PublishingNavigation:PortalSiteMapDataSource 
    ID="MainNavigationDataSource" 
    runat="server" 
    EnableViewState="true"
    SiteMapProvider="GlobalNavSiteMapProvider"
    StartingNodeOffset="0" 
    ShowStartingNode="false" />

and then you can use any sort of control (databound) to render your menu. I´m using a repeater for my menu:

<asp:Repeater runat="server" ID="MenuRepeater" 
DataSourceID="MainNavigationDataSource">
哭泣的笑容 2024-07-21 03:21:26

除了 SharePoint 菜单之外,您不需要使用任何其他组件,但您必须在正文标记中添加一小段脚本:

< body onload="javascript:if (typeof(_spBodyOnLoadWrapper) != '未定义') _spBodyOnLoadWrapper();">

you are not required to use any other components other than SharePoint Menu but you have to add a small piece of script in the body tag:

< body onload="javascript:if (typeof(_spBodyOnLoadWrapper) != 'undefined') _spBodyOnLoadWrapper();">

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