Project

General

Profile

Actions

Feature #100465

open

API for disabling frontend indexing the current page from a plugin

Added by Christian Weiske over 1 year ago.

Status:
New
Priority:
Should have
Assignee:
-
Category:
Indexed Search
Target version:
-
Start date:
2023-04-05
Due date:
% Done:

0%

Estimated time:
PHP Version:
Tags:
Complexity:
Sprint Focus:

Description

There should be an official API to disable indexing the current page by indexed_search's frontend initiated indexing.

Use case

A page with a plugin the provides a form and shows results based on the form input. The form data are submitted via GET because the results shall have a URL that is sharable.
The results shall not be indexed by indexed_search, only the page without form input shall be indexed.

Current solution

Inside the plugin, check if form-specific GET parameters are set and then disable indexing for the current page by setting

//disable indexing of this page in indexed_search
$GLOBALS['TSFE']->config['config']['index_enable'] = 0;

Problems with the current solution

This works fine in TYPO3 v10, but is prone to problems because

  • Accessing TSFE is discouraged
  • in the future, indexed_search may use a different signal to decide if indexing shall happen

Thus an official way would be nice.

No data to display

Actions

Also available in: Atom PDF