Project

General

Profile

Actions

Feature #97540

closed

Add custom fields to DataHandler::pagetreeRefreshFieldsFromPages

Added by Georg Tiefenbrunn over 2 years ago. Updated over 2 years ago.

Status:
Closed
Priority:
Should have
Assignee:
-
Category:
-
Target version:
-
Start date:
2022-05-03
Due date:
% Done:

0%

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

Description

Updating pages via DataHandler will trigger a reload of the page tree if certain fields (visibility, title) are changed.

These fields are hardcoded in https://github.com/TYPO3/typo3/blob/main/typo3/sysext/core/Classes/DataHandling/DataHandler.php#L327

Feature request: Add a config option (e.g. $GLOBALS['TYPO3_CONF_VARS']) to add custom fields to DataHandler::pagetreeRefreshFieldsFromPages array.

Use cases: Using additional overlay icons for approval, content revision (outdated content), custom FE access restrictions, etc.

Actions #1

Updated by Georg Ringer over 2 years ago

  • Status changed from New to Needs Feedback

as this property is defined as public you could use the hook processDatamap_postProcessFieldArray or any hook which is called before the usage of this property to modify its content.

would that work out for you?

Actions #2

Updated by Georg Tiefenbrunn over 2 years ago

would that work out for you?

YES! I missed the forest for the trees :) Many thanks for the fast reply!
processDatamap_preProcessFieldArray proved to be the most suitable hook for me.

Actions #3

Updated by Georg Ringer over 2 years ago

  • Status changed from Needs Feedback to Closed

closing issue as there are solutions available

Actions

Also available in: Atom PDF