创建列表(url 链接)并将其部署为功能
我对 SharePoint 很陌生,如果这听起来有点基础,我深表歉意。
我想在 SharePoint 中创建一个纯粹是 URL 链接的列表,然后将其提供给我们将创建的每个网站集。
创建此列表后,我需要将其显示在 Web 部件中(如标准“链接”Web 部件)。我想我需要创建一个功能,以便可以在网站集级别激活它。
请问有什么想法可以实现这一点吗?
提前谢谢大家,阿什;-)
I'm very new to SharePoint, so apologies if this sounds a little basic.
I want to create a List in SharePoint that is just purely URL links, but then make it available to every site collection that we will create.
Once this list is created, I need it to display in a webpart (like that standard 'links' webpart). I guess I will need to create a Feature, so that it can be activated at Site Collection level.
Any ideas how this can be achieved please?
Thank you all kindly in advance, Ash ;-)
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(2)
我做了类似的事情 - 但我将其创建为 Web 部件,并进行了自身的安全调整。我在这里介绍了一些基础知识:
http://www.codersbarn.com/?tag=/网页部分
I did something similar - but I created it as a Web Part with it's own security trimming. I covered some of the basics here:
http://www.codersbarn.com/?tag=/webpart
您需要的是链接列表上的视图(该视图将显示列表的内容)。有关列表视图 Web 部件的更多详细信息,请查看此处。一旦您弄清楚如何创建它以及您想要在视图中显示什么内容,对其进行编码应该不会太难(您可以在网站上使用 SharePoint Designer 创建所需的视图,然后使用 SPSource 或将其逆向工程为代码)您可以从列表中的 schema.xml 创建它)。
但您应该注意,使用 WSS,您将无法在另一个网站集中查看列表的内容(即您只能在创建列表的网站集中查看您的列表)。跨站点列表视图的实现要复杂得多(不过您可以购买执行此操作的组件)。我不确定 MOSS 如何处理跨站点列表视图,但如果您使用 MOSS,您应该确保在开始开发视图之前可以做到这一点。
编辑:如果你的列表不是太复杂并且结构不会改变太多,我肯定会采纳 IrishChieftain 的建议。处理跨站点列表视图是一件痛苦的事情。
What you would need is a view on your list of links (that view will display the content of your list). Have a look here for more details on List View Web Parts. Once you figure out how to create it and what you want in your view, coding it shouldn't be too hard (You can either use SharePoint Designer on your site to create the view you want and then reverse engineer it into code using SPSource or you can create it from the schema.xml of you list).
You should note however, that with WSS you will not be able to view the content of a list on another site collection (i.e. you can only views of your list on the site collection where the list was created). Cross-site list views are a lot more complex to implement (you can buy components that do it though). I'm not sure how MOSS deals with cross-site list views but if you use MOSS, you should make sure that you can do it before you start developing your view.
EDIT : I would definitely go with what IrishChieftain suggested if your list isn't too complicated and has a structure that won't change much. Dealing with cross-site list views is a pain.