georgringer / news

TYPO3 Extension news
GNU General Public License v2.0
264 stars 358 forks source link

[DOCS] Modernize outdated conditions still using globalVar #2469

Closed ErHaWeb closed 5 months ago

ErHaWeb commented 5 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()?.type == 9819] can be used accordingly.

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

Related: #2458