Hallo!
Ich habe als Howto, wie man ein Menü immer mit Strich zwischen den einzelnen Menüpunkten machen kann, auf typo3.org gelesen.
Dabei bin ich über dieses Codeschnipsel gestolpert. Es funktioniert auch, ich würde aber gerne wissen, was z.B. die Sterne sein sollen...
wrap = | | |*||*| |
Danke,
Sebastian
Hi kurfürst,
das Ding | heißt optionSplit und ist in der TSref.pdf ab Seite 33 supergeil beschrieben.
Kann ich nur empfehlen.
Ciao
Der DJ
PS: Kleiner Ausschnitt
optionSplit:
optionSplit is a very tricky function. It's primarily used in the menu-objects where you define properties of a whole
bunch of items at once. Here the value of properties would be parsed through this function an depending on your
setup you could eg. let the last menu-item appear with another color than the other.
The syntax is like this:
|*| - splits the value in parts first, middle, last.
|| - splits each of the first, middle, last in subparts
1: The priority is last, first, middle.
2: If the middle-value is empty (""), the last part of the first-value is repeated.
3: If the first- or middle value is empty, the first part of the last-value is repeated before the last value
4: The middle value is rotated.
ex: first1 || first2 |*| middle1 || middle2 || middle3 |*| last1 || last 2
...
...
...