| Beide Seiten, vorherige ÜberarbeitungVorherige ÜberarbeitungNächste Überarbeitung | Vorherige Überarbeitung |
| typo3:about:functions:optionsplit [2014/01/19 17:21] – [Beispiele] admin | typo3:about:functions:optionsplit [2017/12/05 21:37] (aktuell) – [Beispiele] admin |
|---|
| |
| === Nur ein Hauptteil mit Subparts === | === Nur ein Hauptteil mit Subparts === |
| | |
| | Hier ist es wichtig, dass zwischen ''|*||*|'' kein Leerzeichen steht – sonst gilt dieser Teil der Anweisung als gesetzt (aber leer) und die Farben werden nicht auf alle Werte angewendet (siehe "Leerer Mittelteil"). |
| |
| <code typoscript> | <code typoscript> |
| rot||orange||blau |*||*| | rot||orange||blau |*||*| |
| </code> | </code> |
| | |
| | <html><span style="color:red;">eins,</span><span style="color:orange;">zwei</span></html> |
| |
| <html><span style="color:red;">eins,</span><span style="color:orange;">zwei,</span><span style="color:blue;">drei,</span><span style="color:blue;">vier,</span><span style="color:blue;">fünf</span></html> | <html><span style="color:red;">eins,</span><span style="color:orange;">zwei,</span><span style="color:blue;">drei,</span><span style="color:blue;">vier,</span><span style="color:blue;">fünf</span></html> |
| |*| rot||orange||blau |*| | |*| rot||orange||blau |*| |
| </code> | </code> |
| | |
| | <html><span style="color:red;">eins,</span><span style="color:orange;">zwei</span></html> |
| |
| <html><span style="color:red;">eins,</span><span style="color:orange;">zwei,</span><span style="color:blue;">drei,</span><span style="color:red;">vier,</span><span style="color:orange;">fünf</span></html> | <html><span style="color:red;">eins,</span><span style="color:orange;">zwei,</span><span style="color:blue;">drei,</span><span style="color:red;">vier,</span><span style="color:orange;">fünf</span></html> |
| |*||*| rot||orange||blau | |*||*| rot||orange||blau |
| </code> | </code> |
| | |
| | <html><span style="color:blue;">eins</span></html> |
| | |
| | <html><span style="color:orange;">eins,</span><span style="color:blue;">zwei</span></html> |
| |
| <html><span style="color:red;">eins,</span><span style="color:red;">zwei,</span><span style="color:red;">drei,</span><span style="color:orange;">vier,</span><span style="color:blue;">fünf</span></html> | <html><span style="color:red;">eins,</span><span style="color:red;">zwei,</span><span style="color:red;">drei,</span><span style="color:orange;">vier,</span><span style="color:blue;">fünf</span></html> |
| | |
| | ---- |
| | |
| | === Nur Subparts, keine Trenner für Hauptparts === |
| | |
| | Zuweisung von links nach rechts. Der letzte Part wird wiederholt. |
| | |
| | <code typoscript> |
| | rot||orange||blau |
| | </code> |
| | |
| | <html><span style="color:red;">eins,</span><span style="color:orange;">zwei</span></html> |
| | |
| | <html><span style="color:red;">eins,</span><span style="color:orange;">zwei,</span><span style="color:blue;">drei,</span><span style="color:blue;">vier,</span><span style="color:blue;">fünf</span></html> |
| | |
| | ---- |
| | |
| | === Nur zwei Hauptteile === |
| | |
| | Bei zwei Hauptteilen gilt der Endpart als fehlend. Der rechte Teil gilt als Mittelteil und wird wechselnd wiederholt. |
| | |
| | <code typoscript> |
| | rot||orange |*| blau||grün |
| | </code> |
| | |
| | <html><span style="color:red;">eins,</span><span style="color:orange;">zwei,</span><span style="color:blue;">drei,</span><span style="color:green;">vier,</span><span style="color:blue;">fünf,</span><span style="color:green;">sechs,</span><span style="color:blue;">sieben</span></html> |
| |
| ---- | ---- |