---
title: "Erklärung gesucht:"
url: "https://www.typo3.net/d/1328-erklaerung-gesucht"
source: "typo3.net"
tags: ["TYPO3","TypoScript","Frage"]
created: "2003-01-31"
last_reply: "2003-01-31"
replies: 1
solved: false
page: 1
pages: 1
lang: "de"
---

# Erklärung gesucht:

TYPO3 › TypoScript · 1 Antwort · gestartet 2003-01-31

## Eröffnungsbeitrag

**kurfuerst** · 2003-01-31 · [Beitrag #1](https://www.typo3.net/d/1328-erklaerung-gesucht/1)

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 = |&nbsp;&#124;&nbsp;|*||*| |

Danke,
Sebastian

## Antworten

### [#2](https://www.typo3.net/d/1328-erklaerung-gesucht/2) · dj.​picasso · 2003-01-31

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

```plaintext
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
...
...
...
```

---

Quelle: „Erklärung gesucht:“, typo3.net, https://www.typo3.net/d/1328-erklaerung-gesucht
Beiträge von Mitgliedern des Forums. Bitte mit Link auf die Diskussion zitieren.
