站点选择器控制
我正在尝试使用 sharepoint 2010 在自定义母版页中实现下拉列表。自定义下拉列表应允许用户选择特定站点。需要有一定程度的灵活性,以便用户可以通过列表等更新下拉列表中列出的网站,因为某些网站是外部的,
这可能只是一个自定义 Web 用户控件,编码为查看网站列表,然后母版页可以使用该控件参考?
任何关于如何最好地处理的想法或任何 ootb 方法对此非常感激 谢谢
I'm trying to implement a drop down list within a custom master page using sharepoint 2010. The customised dropdown should allow users to select a particar site. There needs to be a level of flexibility so users can update the sites listed in the drop down say via a list etc as some sites are external
Could this just be a custom web user control coded to look at a site list which the masterpage can then reference?
Any ideas on how best to approach or any ootb approach on this much appreciated
Thanks
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。

绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我建议在母版页上添加一个列表视图 Web 部件,并更改其 XSLT 以在下拉列表中显示所有列表值。
i would suggest to add a listview webpart on master page and change its xslt to display all list values in dropdown.
您可以使用链接创建新的站点地图文件。
将提供程序添加到您的 web.config 中。
将母版页的导航数据源更改为新的提供商。
要添加新链接,您只需将新条目插入站点地图 xml 文件即可。
问候,
KS
You can create a new sitemap file with your links.
Add the provider to your web.config.
Change your masterpage's navigation datasource to your new provider.
To add new links you can just insert new entries into your sitemap xml file.
regards,
KS