TYPO3 8.7.x 扩展库:Indexed_search索引不适用于自己的扩展



我创建了一个简单的基于extbase/fluid的新闻扩展,其中包含显示最新新闻的列表视图。我还使用indexed_search搜索整个网站。问题是,indexed_search没有索引我新闻的任何单词。

如何将indexed_search用于我自己的扩展? 几个小时以来,我在网上找不到任何有用的东西。我将非常感谢每一个提示或关键字。 我的扩展的列表视图的流体模板:

<f:for each="{berichts}" as="bericht">
<div class="bericht">
<div class="bericht_titel">
<h1>
<b>[<f:for each="{bericht.kategorien}" as="kategorie" iteration="i">{kategorie.name}<f:if condition="{i.isLast}"><f:then></f:then><f:else>, </f:else></f:if></f:for>]</b>&nbsp;<f:link.action action="show" pageUid="65" format="html" arguments="{bericht: bericht}">{bericht.titel}</f:link.action>
</h1>
<span class="glyphicon glyphicon-menu-right" aria-hidden="true"></span></div>
<div class="bericht_text">
<f:if condition="{bericht.bild}">
<a href="{f:uri.image(src: bericht.bild.originalResource.publicUrl)}" class="bericht_bild"><f:image image="{bericht.bild}" alt="" /></a>
</f:if>
<f:format.html>{bericht.text}</f:format.html>
<div class="clearfix"></div>
<f:if condition="{bericht.anhaenge}">
<div class="bericht_anhang">
<b>Anhänge:</b><br />
<f:for each="{bericht.anhaenge}" as="anhang">
<div>
<a href="{anhang.originalResource.publicUrl}" target="_blank">
<f:if condition="{anhang.originalResource.title}">
<f:then>
{anhang.originalResource.title}
</f:then>
<f:else>
{anhang.originalResource.originalFile.name}
</f:else>
</f:if>
</a>
</div>
</f:for>
</div>
</f:if>
</div>
</div>
</f:for>

生成的一个"Bericht"的HTML

<div class="bericht">
<div class="bericht_titel">
<h1><b>[Allgemeines]</b>&nbsp;<a href="/aktuelles/bericht/?tx_companyaktuelles_p1aktuelles%5Bbericht%5D=3&amp;amp;tx_companyaktuelles_p1aktuelles%5Baction%5D=show&amp;amp;tx_companyaktuelles_p1aktuelles%5Bcontroller%5D=Bericht&amp;amp;tx_companyaktuelles_p1aktuelles%5Bformat%5D=html&amp;amp;cHash=d6c3c8ef294eee899bc15150443b0775">Test</a></h1><span class="glyphicon glyphicon-menu-right" aria-hidden="true" style="transform: rotate(90deg);"></span>
</div>
<div class="bericht_text" style="display: block;">
<p>Dies ist ein Test</p>
<div class="clearfix"></div>
</div>
</div>

现在它正在工作。页面本身存在错误,但禁用缓存未处于活动状态。因此,如果其他人有同样的问题;尝试将插件插入另一个页面并进行测试。我不得不删除该页面并重新创建它。

最新更新