psvneo/typo3-extension-cb_kesearch_indexer

扩展ke_search,增加了索引'内容块'的可能性

安装: 24

依赖项: 0

建议者: 0

安全: 0

类型:typo3-cms-extension

0.9.5 2024-07-17 07:25 UTC

This package is auto-updated.

Last update: 2024-09-17 07:46:53 UTC


README

为使用collectionscontentblocks/content-blockstpwd/ke_search索引器。

使用集合的内容块将数据存储在外部表中。此扩展可用于索引这些数据。

安装

只需安装。它将与页面/内容索引器挂钩。

composer require psvneo/typo3-extension-cb_kesearch_indexer

配置

在您的“索引器配置”中为页面添加要索引的内容元素的CType。然后在“config/extensions/cb_kesearch_indexer”文件夹中创建一个名为“config.yaml”的YAML文件。

必须为每个使用集合的内容元素在配置中创建一个单独的设置。

YAML模板

version: 1 # version of this config file
content_blocks:
  vendor_contentelement: # TYPO3 CType of the content element
    -
      tt_content_field: custom_field_name # created field in tt_content table
      collection_table: custom_table_name # table that is used with the collection
      collection_content: # fields that should be added to the ke_search index
        - customtitlefield
        - customtextfield

重大变更

从版本0.9.5开始,必须使用略有不同的yaml语法。字段“tt_content_field”、“collection_table”和“collection_content”必须按顺序排列。这允许索引多个集合。

致谢

灵感来源于mask_kesearch_indexer