Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Fix string substitution after variant application #68

Open
wants to merge 2 commits into
base: master
Choose a base branch
from

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
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