psvneo/typo3-extension-cb_kesearch_indexer

Extends ke_search with the possibility to index 'Content Blocks'

Installs: 30

Dependents: 0

Suggesters: 0

Security: 0

Type:typo3-cms-extension

0.9.5 2024-07-17 07:25 UTC

This package is auto-updated.

Last update: 2024-10-17 08:02:52 UTC


README

An tpwd/ke_search indexer for contentblocks/content-blocks that are using collections.

Content blocks that use a collection store the data in an external table. This extension can be used to index this data.

Installation

Just install. It hooks up in page-/content-indexer.

composer require psvneo/typo3-extension-cb_kesearch_indexer

Configuration

In your 'Indexer Configuration' for pages add the CType of the content element to be indexed. Than create of YAML file in the folder 'config/extensions/cb_kesearch_indexer' named 'config.yaml'.

A separate setting must be created in the configuration for each content element that uses a collection.

YAML Template

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

BREAKING CHANGE

As of version 0.9.5, a slightly different yaml syntax must be used. The fields “tt_content_field”, “collection_table” and “collection_content” must be arranged in a sequence. This allows several collections to be indexed.

Kudos

Inspired by mask_kesearch_indexer