georgringer / news

TYPO3 Extension news
GNU General Public License v2.0
265 stars 355 forks source link

[DOCS] Modernize outdated conditions still using globalVar #2458

Closed ErHaWeb closed 6 months ago

ErHaWeb commented 6 months ago

With the introduction of the symfony expression language since TYPO3 9.4, the old syntax (such as the use of globalVar) is considered as deprecated. This patch converts all conditions to the new syntax.

A null-safe operator in the TypoScript conditions was deliberately not used in this patch, as this was only introduced from TYPO3 v12.1 onwards. As soon as support for v11 is ended, this more elegant abbreviation [getTSFE()?.id == 9819] can be used accordingly.

In addition, [global] is replaced by the more suitable variant [END], which only terminates the previous condition.

ErHaWeb commented 6 months ago

This PR was closed in favor of the newer PR #2469.