O365:内容搜索WP的显示模板:添加新字段(在我的语言中) [英] O365: Display Template for Content Search WP: Adding New Field (In my Language)

查看:38
本文介绍了O365:内容搜索WP的显示模板:添加新字段(在我的语言中)的处理方法,对大家解决问题具有一定的参考价值,需要的朋友们下面随着小编来一起学习吧!

问题描述

我正在尝试配置CSWP以显示StartDate,因为它是我母语中的不同字段名称。 WP应该从OOB日历中检索Title和StartDate(Alkamisaika)。

I'm trying to configure CSWP to show StartDate because it's different field name in my native language. The WP should retrieve Title and StartDate (Alkamisaika) from an OOB Calendar.

我将使用两行显示模板。我在SP UI中修改了Item_TwoLines.html的属性,如下所示:

I will use Two Lines Display Template. I have modified in SP UI the property of Item_TwoLines.html like this:

托管属性映射:

'链接URL'{Linkin URL-osoite }:'路径','第1行'{Rivi 1}:'标题','第2行'{Rivi 2}:'Aloituspäivä'

'Link URL'{Linkin URL-osoite}:'Path','Line 1'{Rivi 1}:'Title','Line 2'{Rivi 2}:'Aloituspäivä'

其中Rivi =行
$ b $bAloituspäivä= StartDate

where Rivi=Row
Aloituspäivä=StartDate

当我发布文件并在SP UI中配置CSWP属性时,我看到第2行带有"Aloituspäivä",但很快就消失了,日期未显示在页面上。不知何故,托管属性映射行选项在Web部件上消失
属性:仅用于更改意图的复选框 它们被留下了,但是Line字段已经消失了。

When I published the file and configured then CSWP properties in SP UI I saw a glimpse of Line 2 with "Aloituspäivä", but soon it disappeared, and the date is not shown on the page. Somehow the Managed Property Mapping Line choices disappeared on the web part Properties: only the check box for intention to change  them is left, but the Line fields are gone.

虽然这个问题,但网页部分显示标题正确但不是StartDate(Aloituspäivä)。

Although this problem, the web part shows the Title correct but not the StartDate (Aloituspäivä).

我错过了什么?

推荐答案

你好BreXit,

Hi BreXit,

问题是否在SharePoint上发生?

Did the issue occur in SharePoint online?

如果是,要解决问题,请删除内容搜索Web部件并重新添加内容搜索网页部分以检查是否会出现同样的问题。

If so, to troubleshoot the issue, remove the content search web part and re-add the content search web part to check if the same issue will occur.

我建议你在修改Item_TwoLines.html时使用英文。

And I suggest you could use English when you modify the Item_TwoLines.html.

更多参考:

添加托管属性映射到您的显示模板,不得更改。

祝你好运,

Sara Fan





这篇关于O365:内容搜索WP的显示模板:添加新字段(在我的语言中)的文章就介绍到这了,希望我们推荐的答案对大家有所帮助,也希望大家多多支持IT屋!

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