简体   繁体   中英

How to check the protocol with the new Symfony Expression syntax in a TypoScript condition

I need to check the protocol with the Symfony Expression Langange in TypoScript conditions.

The old syntax is [globalString = IENV:TYPO3_SSL=1]

But in the documentation, there is no mention of TYPO3_SSL .

https://docs.typo3.org/m/typo3/reference-typoscript/master/en-us/Conditions/

Starting with TYPO3 ver.: 9.4 and next, this can be used as a replacement:

[request.getNormalizedParams().isHttps() == true]

Here are some more references for migrating TypoScript conditions:

The technical post webpages of this site follow the CC BY-SA 4.0 protocol. If you need to reprint, please indicate the site URL or the original address.Any question please contact:yoyou2525@163.com.

 
粤ICP备18138465号  © 2020-2024 STACKOOM.COM