问题描述
我尝试将自定义字段列添加到搜索结果中,但似乎不起作用.我该怎么办?
I tried to add custom field columns to search results but it doesn't seem to work. How do I do that?
1.创建了新的显示模板(Item_List.html)
1. Created new Display Template (Item_List.html)
2.在此处添加了自定义列表"字段:
< mso:ManagedPropertyMapping msdt:dt ='"string">'Title':'Title','Path':'Path','Last_x0020_Name':'Last_x0020_Name','First_x0020_Name':'First_x0020_Name'
2. Added Custom List field here:
<mso:ManagedPropertyMapping msdt:dt="string">'Title':'Title', 'Path':'Path','Last_x0020_Name':'Last_x0020_Name','First_x0020_Name':'First_x0020_Name'
3.在Div部分添加了项:
3. Added item in Div section:
路径显示正确,但姓氏显示不正确.
The Path displayed properly but not the Last Name.
我对分享点还很陌生,任何帮助将不胜感激.
I am pretty new to sharepoint, any help would be appreciated.
推荐答案
https://www.abelsolutions.com/creating-customized-search-results-in-sharepoint-2013/
https://www.abelsolutions.com/creating-customized-search-results-in-sharepoint-2013/
这篇关于如何在搜索结果中显示自定义列表字段的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持!