应用html来显示模板 [英] apply html to display template

查看:116
本文介绍了应用html来显示模板的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

技术人员

我想创建一个显示模板以响应我用div围绕css和样式的div搜索结果,我也实现了同样的效果,但是这里的问题是容器div重复了很多该项目是 在搜索结果中.

I want to create display template which is responsive for that i have surrounded  search result by div with some css and styling,I have achieved the same as well but the issue here is that the container div is repeating as many times the item is there in search result.

在突出显示的标签上,我不想重复

Above highlighted tags i don't want to be repetitive 

感谢您的帮助.

感谢Shekhar.diary

Thanks Shekhar.diary

推荐答案

Shekhar.Diary,

如果您不希望内容作为搜索结果重复,您不应将内容放入搜索显示模板中.

编辑搜索结果页面,使用内容编辑器网站添加代码/内容部分.

Edit the search results page, add the code/content using a Content Editor web part.

最好的问候,

Linda Zhang


这篇关于应用html来显示模板的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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