SharePoint 2010 “I nedd to”web part

在SharePoint 2010中,当官方的INeedto...WebPart不可用时,作者分享了一个自定义的QuickLinks WebPart解决方案。此WebPart允许设置四个关键属性:链接列表名称、是否在同一站点或顶级站点、排序列以及显示文本。用户通过选择列表项即可实现页面跳转。
 
August 06
Quick Links Web Part
Although the "I Need to..." Web Part is nothing sexy, it actually has been a favorite control for my customers. It's a nice way of having a Quick Links list on Intranet homepages that doesn't take up a lot of real estate, (which is especially important on homepages which typically have a lot of content).
 
I was sad to discover that is pretty much useless for SharePoint 2010. I spent several hours trying to get it working but was not able to. I finally decided to create my own Web Part to do the same thing.
 
The new Web Part allows you to set four properties:

Quick Links Web Part Tool Pane
  • The name of the Links List which is serving as a data source for your drop down menu.
  • A checkbox where you can specify if the list in the same site as the Web Part, or whether the list is in the top level site of the site collection.
  • The name of the column that you want to order your items by, in case you want your items in a particular order.
  • The display text says as "Quick Links..." which will show up as the first item in the menu.

The Web Part assumes that your list has a column called "URL" which is a hyperlink column. (Basically, make sure you create a Links list to be the data source column.)

The control is simple. There's no "Go" button like in the "I Need to..." Web Part, but when the user selects an item from the list, it will redirect to that new URL on postback.

Quick Links Drop Down Menu

You can download the Solution Pacakge here:
BB.SP2010.WebParts.QuickLinks.wsp

You can download the Visual Studio project here:
BB.SP2010.WebParts.QuickLinks.zip

Update November 29, 2011: John Ross, fellow SharePoint MVP, helped me fix the Quick Links web part, so you won't get the postback issues reported by some of you. I've updated the solution package and ZIP files, so you if you download them now, they will include the fix. Thanks, John! 

转载于:https://www.cnblogs.com/ahghy/archive/2013/03/17/2964850.html

评论
添加红包

请填写红包祝福语或标题

红包个数最小为10个

红包金额最低5元

当前余额3.43前往充值 >
需支付:10.00
成就一亿技术人!
领取后你会自动成为博主和红包主的粉丝 规则
hope_wisdom
发出的红包
实付
使用余额支付
点击重新获取
扫码支付
钱包余额 0

抵扣说明:

1.余额是钱包充值的虚拟货币,按照1:1的比例进行支付金额的抵扣。
2.余额无法直接购买下载,可以购买VIP、付费专栏及课程。

余额充值