SPO:搜索HTML代码段 [英] SPO: Search HTML snippet

查看:178
本文介绍了SPO:搜索HTML代码段的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我创建了我的自定义aspx页面(这只是一个重命名为aspx的html)并将其设置为我的主页。纯HTML,没有webparts或任何其他sharepoint对象。



现在我的问题是,如何在此页面中插入SharePoint搜索框?此搜索框应搜索当前网站集和其他网站集


请帮助。

解决方案


如果要创建没有导航/快速搜索等的页面,OOB搜索功能依赖于SharePoint程序集和js库。


以下是供参考的示例演示。


为此网站集启用发布功能。


按设计经理创建最小母版页。





打开SharePoint设计器并连接到该站点。


创建Web部件p网站页面库中的年龄。





更新webpart页面的母版页。





< span style ="color:#1F497D">从UI中将搜索相关的webparts插入页面。





配置搜索框。





结果(如果要隐藏功能区,可以将自定义CSS添加到此页面)。





最好的问候,



I created my custom aspx page ( this is just an html renamed to aspx) and set this as my homepage. Plain HTML, no webparts or any other sharepoint objects.

Now my question is, how will I insert a SharePoint search box in this page? This search box should search the current site collection and another site collection

Please help.

解决方案

Hi,

OOB search function depends on SharePoint assemblies and js libraries, if you want to create a page with no navigation/quick search etc.

Here is sample demo for your reference.

Enable publishing feature for this site collection.

Create a minimal master page by design manager.


Open SharePoint designer and connect to the site.

Create a web part page in site pages library.


Update master page of the webpart page.


Insert search related webparts to page from UI.


Configure search box.


Result(if you want to hide the ribbon you could add custom CSS to this page).


Best Regards,

Lee


这篇关于SPO:搜索HTML代码段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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