Sharepoint 及其模板/母版页
我正在尝试学习如何自定义共享点网站。我看过很多例子,它们似乎都有一个共同点,那就是导航都是一样的。即左侧导航具有不同的页面和文档。顶部导航主要包含子站点或其他站点的链接。
有谁知道我可以抓住具有左侧导航水平布局的好教程或示例?我还没有找到。
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
您需要在母版页中的 aspmenu 控件上设置属性。除了数据源之外,它只是一个标准的 asp.net 菜单。
如果您需要完全控制,请查看 css 友好的控制适配器 - 这将允许您将 asp 菜单(由 sharepoint 用于顶部和左侧导航)呈现为无序列表并应用您需要的任何 css。如果您使用的是 SharePoint 2010,则可以使用 SimpleRendering 属性获得相同的效果。
You need to set properties on the aspmenu control in the master page. Aside from the data source it's just a standard asp.net menu.
If you need complete control, look into the css friendly control adapters - that will let you render an aspmenu (used by sharepoint for both top and left nav) as an unordered list and apply whatever css you need. If you are using SharePoint 2010 you can get the same effect with the SimpleRendering property.
首先请参阅此处自定义快速启动的显示
和此处 将弹出菜单添加到 SharePoint 导航。对于水平布局,请在 SharePoint:AspMenu 中将 Orientation="Vertical" 更改为“水平”。
请参阅以下内容自定义网站
http://www.idratherbewriting.com/2009/01 /28/定制-a-sharepoint-site/
First See here to customize the Display of Quick Launch
and here to Add fly-out menus to SharePoint navigation. For Horizonal layout, Change Orientation="Vertical" to "Horizontal" in SharePoint:AspMenu.
See following to customize the site
http://www.idratherbewriting.com/2009/01/28/customizing-a-sharepoint-site/