Feature #97540
closedAdd custom fields to DataHandler::pagetreeRefreshFieldsFromPages
0%
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.
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?
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.
Updated by Georg Ringer over 2 years ago
- Status changed from Needs Feedback to Closed
closing issue as there are solutions available