修改内容搜索Webpart的显示 [英] Modify display of content search webpart
问题描述
我发现搜索结果显示在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:
Demo about how to apply the custom display template:
Best Regards,
Linda Zhang
这篇关于修改内容搜索Webpart的显示的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!