用自定义搜索框替换 SharePoint 2010 中的默认搜索框 [英] Replace default search box in SharePoint 2010 with custom one

查看:38
本文介绍了用自定义搜索框替换 SharePoint 2010 中的默认搜索框的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

在每个新的 SharePoint 2010 网站上,您都会获得默认搜索框(在 MasterPage 中),允许您只进行普通搜索.

On every new SharePoint 2010 site you get the default search box (In the MasterPage) that allows you to just do a normal search.

我想用一些可以让你选择高级或人物搜索的项目替换它,就像这样.......

I would like to replace this with some item that will allow you to pick Advanced or People Search, something like this.........

是否可以替换/更改 MasterPage 中的默认搜索框?

Is it possible to replace/alter the default search box in the MasterPage?

推荐答案

搜索框是所谓的委托控件,因此自定义并不容易,因为您必须用自己的控件覆盖该控件才能对其进行更改.您可以为搜索框激活一些高级设置(ShowAdvancedSearch 属性),仅此而已.

The search box is a so called delegate control, so it is not that easy to customize as you would have to overwrite the control with your own to change it. There are some advanced settings (ShowAdvancedSearch property) you can activate for the search box, but that's about it.

关于您的问题:是的,可以替换默认搜索框,但您必须编写自己的搜索框.您应该尝试在谷歌上搜索SmallSearchInputBox".这里有一些文章可以帮助您入门:

So about your question: Yes it is possible to replace the default search box, but you would have to write your own searchbox then. You should try googling for "SmallSearchInputBox". Here some articles to get you started:

这篇关于用自定义搜索框替换 SharePoint 2010 中的默认搜索框的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

查看全文
登录 关闭
扫码关注1秒登录
发送“验证码”获取 | 15天全站免登陆