featdd / dpn_glossary

Glossary extension for TYPO3
http://typo3.org/extensions/repository/view/dpn_glossary
GNU General Public License v2.0
20 stars 29 forks source link

Use symfony expression language in Typoscript condition for TYPO3 9 #148

Closed dogawaf closed 4 years ago

dogawaf commented 4 years ago

Since TYPO3 8 support is dropped, the new condition syntax based on Symfony expression language can be used.

[globalVar = LIT:1 = {$plugin.tx_dpnglossary.settings.addStylesheet}]
  page.includeCSS.dpnglossary = EXT:dpn_glossary/Resources/Public/css/styles.css
[global]

can be rewritten with:

["{$plugin.tx_dpnglossary.settings.addStylesheet}" == "1"]
  page.includeCSS.dpnglossary = EXT:dpn_glossary/Resources/Public/css/styles.css
[global]

This way, the feature toggle "TypoScript.strictSyntax" can be turned off on TYPO3 9.