Cast Iron Coding, LLC
TypoScript Techniques

Understanding optionSplit

By: Lucas Thurston


Things only become slightly more complex when we have subexpressions in each of the three parts. The main rules still hold true:

1) the parts are prioritized last, first, middle,
2) the subparts are prioritized according to their context,
3) when there are enough values that a value needs to repeat, it comes from the lowest priority subpart, or
4) if there is a middle, it will rotate or repeat as necessary.

These types of expressions would become increasingly difficult to describe in our shorthand. Here is an attempt to demonstrate how optionSplit would prioritize each item in a longer expression:

89
3456721
string1||string2||string3|*|string4||string5|*|string6||string7|


The "middle" part will continue to cycle through its values until each item has a value assigned by optionSplit.

Posted on Friday, August 26, 2005 at 01:54 PM.