【发布时间】:2016-09-19 18:03:33
【问题描述】:
在默认 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' 但没有。我检查了 ts extResume = 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>
...
现在它可以工作了,但我仍然不明白为什么默认情况下它不能工作?
【问题讨论】:
-
这至少在 7.6 中已修复,但它显示页面内容的开头 - 而不是与点击相关的部分...
标签: typo3 fluid-layout extbase typo3-7.6.x