细化搜索结果控制
我正在为我的人员搜索 Web 部件使用人员搜索核心结果页面布局。 默认情况下,当您搜索时,它会提供“优化搜索”选项。 据我观察,它从控件中获取这些选项。
我尝试编辑页面布局并在标题值中添加我的属性,但它引发错误。
任何人都可以帮助我如何在页面上添加我的财产。
提前致谢
I am using People Search Core Results PageLayout for my People Search WebPart.
By default when you search it gives an option of Refine your search.
As I observe its getting those options from a Control.
<SEARCHWC:RefineSearchResults runat="server" Title="<%$Resources:sps,RefineByTitle%>" SearchProperty="JobTitle"/>
I tried to edit the page layout and added my property in the Title value but it throw a error.
<SEARCHWC:RefineSearchResults runat="server" Title="<%$Resources:sps,RefineBymyProperty%>" SearchProperty="myProperty"/>
Can any one help me how to add myproperty on the page.
Thanks in advance
如果你对这篇内容有疑问,欢迎到本站社区发帖提问 参与讨论,获取更多帮助,或者扫码二维码加入 Web 技术交流群。
绑定邮箱获取回复消息
由于您还没有绑定你的真实邮箱,如果其他用户或者作者回复了您的评论,将不能在第一时间通知您!
发布评论
评论(1)
我发现RefineSeachResults 控件在Moss 2007 中是密封的,但在SharePoint 2010 中它是可扩展的。
这就是您在控件模板中找不到它的原因,即使它表示为用户控件。
为了添加您的属性,例如在我的例子中显示“myProperty”,我已将其保留为内联并且它有效。
如果您需要 OOB 之外的额外功能,那么唯一的选择是编写自定义控件。
希望这可以帮助某人。
谢谢
I found out that the RefineSeachResults control is sealed in Moss 2007 but in SharePoint 2010 its extendable.
That is the reason you can't find it in the control templates even though it represents to be as user control.
To add you propoerty for example in my case to show "myProperty" I have kept that inline and it worked.
<SEARCHWC:RefineSearchResults runat="server" Title="RefineBy myProperty" SearchProperty="myProperty"/>
If you have scenario where you want extra functionality other that OOB then the only option is write custom control.
Hope this might help someone.
Thanks