Skip to content

Fix string substitution after variant application#68

Open
Rall3n wants to merge 2 commits intotritum:masterfrom
Rall3n:better-fixed-variants
Open

Fix string substitution after variant application#68
Rall3n wants to merge 2 commits intotritum:masterfrom
Rall3n:better-fixed-variants

Conversation

@Rall3n
Copy link

@Rall3n Rall3n commented Feb 2, 2024

This PR fixes string substitution after variants have been applied by adding the beforeRendering hook.

To also support finishers, a custom LinkedCheckbox implementation class has been introduced with an overwrite of the setOptions method. String substitution is re-applied if the argument $resetValidators is true. As of current TYPO3 source this only ever happens when variants are being applied.

For this, all of the processing logic of the FormElementLinkResolverHook has been moved to the LinkedCheckbox implementation class, with its hook methods still functioning as triggers for processing.

Fixes #61

* Move processing logic to implementation, hook still acting as trigger
* Add `beforeRendering` hook for additional reprocessing and cleanup
@Rall3n Rall3n force-pushed the better-fixed-variants branch from a77411e to 03233ac Compare January 13, 2026 12:20
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

No %s substitution in variants

1 participant