FluidTYPO3 / vhs

TYPO3 extension VHS: Fluid ViewHelpers
https://fluidtypo3.org
Other
190 stars 229 forks source link

Setting typolink.useCacheHash has no effect in TYPO3v9+ #1774

Closed cweiske closed 2 years ago

cweiske commented 2 years ago

vhs uses the useCacheHash when generating links in two places:

This generates deprecation notices:

TYPO3 Deprecation Notice: Setting typolink.useCacheHash has no effect anymore. Remove the option in all your TypoScript code and Fluid templates. in typo3/sysext/frontend/Classes/Typolink/PageLinkBuilder.php line 155

This option

But vhs still supports TYPO3 v8.7, so just removing it is not possible.

Shall we add a core version specific check for that parameter?

NamelessCoder commented 2 years ago

Shall we add a core version specific check for that parameter?

Yes, that is exactly the solution I would choose - e.g. version_compare(VersionNumberUtility::getCurrentTypo3Version(), '9.5', '<='). I would then also make a note in the registerArgument() description that the argument has no effect on TYPO3 9.5 and above.