修改内容搜索Webpart的显示 [英] Modify display of content search webpart

查看:56
本文介绍了修改内容搜索Webpart的显示的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

大家好,我试图使用CSWP来显示网站集下的子网站列表 .

我发现搜索结果显示在1个单列中.因此,例如,如果我有30个子站点,则希望它在10项的2列中显示,其余部分则以分页显示.我该怎么办?


解决方案

我们可以使用带有分页的列表"控件显示模板来实现分页.


将项目显示为两个 ,您需要创建自定义的商品显示模板. 项目显示模板"用于控制内容在内容搜索" Web部件中的显示方式.

网站设置>母版页和页面布局>显示模板>内容Web部件.

有关Content Search Web部件显示模板的信息:

有关如何应用自定义显示模板的演示:

最好的问候,

Linda Zhang


Hi Everyone, I'm trying to display a list of subsites under a site collection using CSWP exactly described here

I find the search results display in 1 single column. So if I have 30 subsites for example, I want it to display in 2 columns of 10 items and pagination for the rest. How can I do that?


解决方案

Hi mikello,

We can use "List with Paging" control display template to achieve pagination.


To display items in two columns, you need to create a custom Item Display Template. The Item Display Template is used to control how content is display in the Content Search web part.

Site settings > Master page and page layout > Display Templates > Content Web Parts.

Information about display templates for Content Search web part:

https://blogs.technet.microsoft.com/sharepoint_quick_reads/2013/08/01/sharepoint-2013-customize-display-template-for-content-by-search-web-part-cswp-part-1/

Demo about how to apply the custom display template:

https://blogs.technet.microsoft.com/tothesharepoint/2013/05/24/stage-11-upload-and-apply-display-templates-to-the-content-search-web-part/

Best Regards,

Linda Zhang


这篇关于修改内容搜索Webpart的显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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