在默认的 indexsearch 扩展中,我在搜索结果中突出显示了关键字,但是当我使用 FLUID 版本时它不起作用,我发现控制器的功能不同,为默认模板和 FLUID 准备了描述。错字3/sysext/indexed_search/Classes/Controller/SearchController.php
452 行 --- 为 FLUID 准备
$resultData['description'] = $this->makeDescription(
$row,
(bool)!($this->searchData['extResume'] && !$headerOnly),
$this->settings['results.']['summaryCropAfter']
);
(bool)!($this->searchData['extResume'] && !$headerOnly)
应该给' false
'但没有。我检查 tsextResume = 1
和headerOnly = false
. 所以这似乎是错误的构造?
当更换(bool)!($this->searchData['extResume'] && !$headerOnly)
到false
. 我得到了 murkups,但我还需要从 --- 更改流体模板中的输出格式
...
<f:if condition="{row.headerOnly} == 0">
<p class="tx-indexedsearch-description">{row.description}</p>
...
至 - - -
...
<f:if condition="{row.headerOnly} == 0">
<p class="tx-indexedsearch-description"><f:format.html>{row.description}</f:format.html></p>
...
现在它工作了,但我仍然不明白为什么它默认不工作?