0
votes

What's the right symfony-expression-syntax for the "in List" typo3 conditions? (For Example IP or Language described here: https://docs.typo3.org/m/typo3/reference-typoscript/8.7/en-us/Conditions/Reference/Index.html

This is the condition with a inList-constante I like to migrate:

[IP = {$mainTemplate.IPList}]
  someTyposcript
[end]
1

1 Answers

1
votes

the symfony syntax is [ip("<data>"] and for data the documentation states: Value or Constraint, Wildcard or RegExp possible.

Depending on the IPs you want to cover you have some options:
as you asked specific for in List I assume you have multiple IPs:

  • wildcards: like 10.123.98.*
  • RegExp: 10.123.98.10|10.123.98.40|10.234.12.14

as you see, you might need to change your IP list if it consits of a comma separated list to a pipe(|) separated list