|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hello list,
I use the following Typoscript to split my content elements. I only want to use this splitter in the normal column. However the splitter is placing a ###SPLITTER### marker in every column on the frontend now witouth splitting it. What is wrong in my TS? Kind regards, Bas TS: tt_content { stdWrap.outerWrap = |###SPLITTER### } temp.splittedElements = COA temp.splittedElements { 10 < styles.content.get 20 = TEXT 20 { wrap = <div class="content-sub">|</div> value = } stdWrap.split { token = ###SPLITTER### cObjNum = 1|*|2|*|3 1.current = 1 1.wrap = <div class="content-first-top"></div><div class="content-first">|</div> 2.current = 1 2.wrap = | 3.current = 1 } } _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
> I use the following Typoscript to split my content elements.
> I only want to use this splitter in the normal column. > However the splitter is placing a ###SPLITTER### marker in every > column on the frontend now witouth splitting it. What is wrong in my > TS? > > TS: > tt_content { > stdWrap.outerWrap = |###SPLITTER### > } This is wrong, since it will wrap all elements coming from tt_content regardless of the column settings. Since outerWrap got stdWrap properties itself you could use a CASE element to check for colPos. If colPos is 0 (normal) do something, else do nothing. tt_content { stdWrap.outerWrap.cObject = CASE stdWrap.outerWrap.cObject { key.field = colPos 0 = TEXT 0.value = |###SPLITTER### } } This way you can easily activate the SPLITTER for other columns as well, and this is why I would use it rather than a check with if. HTH Joey -- Wenn man keine Ahnung hat: Einfach mal Fresse halten! (If you have no clues: simply shut your gob sometimes!) Dieter Nuhr, German comedian openBC/Xing: http://www.cybercraft.de T3 cookbook: http://www.typo3experts.com _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
Thanks Joey, works perfect!
JoH asenau schreef: >> I use the following Typoscript to split my content elements. >> I only want to use this splitter in the normal column. >> However the splitter is placing a ###SPLITTER### marker in every >> column on the frontend now witouth splitting it. What is wrong in my >> TS? >> >> TS: >> tt_content { >> stdWrap.outerWrap = |###SPLITTER### >> } > > This is wrong, since it will wrap all elements coming from tt_content > regardless of the column settings. Since outerWrap got stdWrap properties > itself you could use a CASE element to check for colPos. If colPos is 0 > (normal) do something, else do nothing. > > tt_content { > stdWrap.outerWrap.cObject = CASE > stdWrap.outerWrap.cObject { > key.field = colPos > 0 = TEXT > 0.value = |###SPLITTER### > } > } > > This way you can easily activate the SPLITTER for other columns as well, and > this is why I would use it rather than a check with if. > > HTH > > Joey > _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
| Lesezeichen |
| Themen-Optionen | |
| Ansicht | Thema bewerten |
|
|
|
||||
| Thema | Autor | Forum | Antworten | Letzter Beitrag |
| [TYPO3] dynamicly split content elements | Rob De Vries | typo3-english@lists.netfielders.de | 2 | 31.05.2007 11:13 |
| [TYPO3] Section index and option split | Tapio Markula | typo3-english@lists.netfielders.de | 22 | 17.05.2007 09:04 |
| [TYPO3] Problem with option split and menus | Tapio Markula | typo3-english@lists.netfielders.de | 0 | 12.05.2007 09:05 |
| [TYPO3] Using count_menuItems to split a menu in two parts | Eduardo Trápani | typo3-english@lists.netfielders.de | 5 | 24.01.2007 14:03 |
| [Typo3-UG France] Eclaircissement sur le split option... | Pierre | typo3-france@lists.netfielders.de | 0 | 05.02.2005 18:15 |