|
|||||||
| Registrieren | Hilfe | Benutzerliste | Kalender | Suchen | Heutige Beiträge | Alle Foren als gelesen markieren |
|
#1
|
|||
|
|||
|
Hi
Is there some generic split, which could be used for content wrap like option split for menu. tt_content.text.20.dataWrap = <div class="basicText">|</div> the last should be different. _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#2
|
|||
|
|||
|
Dear Tapio,
Try the following oneliner: tt_content.text.20.dataWrap = <div class="first">|</div> |*| <div class="middle">|</div> |*| <div class="last">|</div> Best regards Øyvind Frøland Tapio Markula skrev: > Hi > > Is there some generic split, which could be used for content wrap like > option split for menu. > > tt_content.text.20.dataWrap = <div class="basicText">|</div> > > the last should be different. > _______________________________________________ > TYPO3-english mailing list > TYPO3-english (AT) lists (DOT) netfielders.de > http://lists.netfielders.de/cgi-bin/.../typo3-english _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#3
|
|||
|
|||
|
Øyvind Frøland - UniWeb AS kirjoitti:
> Dear Tapio, > > Try the following oneliner: > > tt_content.text.20.dataWrap = <div class="first">|</div> |*| <div > class="middle">|</div> |*| <div class="last">|</div> seems not to work - this either # renedring definitions on a per column basis temp.customRender = CASE temp.customRender { key.field = colPos default < tt_content 1 < tt_content 2 < tt_content 3 < tt_content 2.text.stdWrap.dataWrap= <div style="border:1px solid red;">|</div> } trie to set for 0 and 1 different wrap. _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#4
|
|||
|
|||
|
Tapio Markula kirjoitti:
> Øyvind Frøland - UniWeb AS kirjoitti: >> Dear Tapio, >> >> Try the following oneliner: >> >> tt_content.text.20.dataWrap = <div class="first">|</div> |*| <div >> class="middle">|</div> |*| <div class="last">|</div> > > seems not to work - this either is there some splitter (needs to work with Typo3 3.8.1) and how to apply here Tried this tt_content.text.20.dataWrap = <div class="basicText">|</div> /* tt_content.text.20.dataWrap.split { token = ###SPLITTER### cObjNum = 1||2|*||*|3||4 1.current = 1 1.wrap = <div class="basicText">|<br class="none" /></div> 2.current = 1 2.wrap = <div class="basicText">|<br class="none" /></div> 3.current = 1 3.wrap = <div class="basicText">|<br class="none" /></div> 4.current = 1 } */ temp.customRender = CASE temp.customRender { key.field = colPos default < tt_content 0 < tt_content 1 < tt_content 4 < tt_content 0.text.stdWrap.dataWrap = <div class="basicText">|<br class="none" /></div> /* 0.text.stdWrap.dataWrap.split { token = ###SPLITTER### cObjNum = 1||2|*||*|3||4 1.current = 1 1.wrap = <div class="basicText">|<br class="none" /></div> 2.current = 1 2.wrap = <div class="basicText">|<br class="none" /></div> 3.current = 1 3.wrap = <div class="basicTextLast">|<br class="none" /></div> 4.current = 1 } */ 1.text.stdWrap.dataWrap = <div class="basicText">|<br class="none" /></div> } [PIDinRootline =1570,1572,1574] tt_content > tt_content < temp.customRender #tt_content.text.20.dataWrap = <div class="basicText">|<br class="none" /></div> /* tt_content.text.20.dataWrap.split { token = ###SPLITTER### cObjNum = 1||2|*||*|3||4 1.current = 1 1.wrap = <div class="basicText">|<br class="none" /></div> 2.current = 1 2.wrap = <div class="basicText">|<br class="none" /></div> 3.current = 1 3.wrap = <div class="basicTextLast">|<br class="none" /></div> 4.current = 1 } */ [end] not succeeded _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#5
|
|||
|
|||
|
_______________________________________________
TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#6
|
|||
|
|||
|
JoH kirjoitti:
>>> Øyvind Frøland - UniWeb AS kirjoitti: >>>> Dear Tapio, >>>> >>>> Try the following oneliner: >>>> >>>> tt_content.text.20.dataWrap = <div class="first">|</div> |*| <div >>>> class="middle">|</div> |*| <div class="last">|</div> >>> seems not to work - this either >> is there some splitter (needs to work with Typo3 3.8.1) >> and how to apply here >> >> Tried this >> >> >> tt_content.text.20.dataWrap = <div class="basicText">|</div> >> >> /* >> tt_content.text.20.dataWrap.split { >> >> not succeeded > > of course not, since there is nothing like > > dataWrap.split > > and you didn't create the ###SPLITTER### for your output. > > I invented the snippet you are trying to use long time ago and reactivated > it for the cookbook, so I definitely know that it works, but to get it > running you need > a) a stdWrap (or other) function to insert the ###SPLITTER### to the content > you want to split > b) the stdWrap function split used in a place where it belongs to. > > HTH > > Joey > > Tried temp.customRender = CASE temp.customRender { key.field = colPos default < tt_content 0 < tt_content 1 < tt_content 4 < tt_content 0.text.stdWrap.dataWrap = <div class="basicText">|<br class="none" /></div> /* 0.text.stdWrap.split { token = ###SPLITTER### cObjNum = 1||2|*||*|3||4 1.current = 1 1.wrap = <div class="basicText">|<br class="none" /></div> 2.current = 1 2.wrap = <div class="basicText">|<br class="none" /></div> 3.current = 1 3.wrap = <div class="basicTextLast">|<br class="none" /></div> 4.current = 1 } */ 1.text.stdWrap.dataWrap = <div class="basicText">|<br class="none" /></div> } [PIDinRootline =1570,1572,1574] tt_content > tt_content < temp.customRender [end] didn't get desired result _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#7
|
|||
|
|||
|
> Tried
> > temp.customRender = CASE > temp.customRender { > key.field = colPos > default < tt_content > 0 < tt_content > 1 < tt_content > 4 < tt_content > 0.text.stdWrap.dataWrap = <div class="basicText">|<br class="none" > /></div> > /* > 0.text.stdWrap.split { > token = ###SPLITTER### You are using the token ###SPLITTER### here. ###SPLITTER### is just a name for a token that I invented together with this solution. It could even be something like ###WHATEVER###. To make use of it you first have to insert it somehow into your code. ###SPLITTER### is nothing that would be inserted by default, it has to be inserted manually i.e. by a wrap, a cObject or however you like. Without inserting the ###SPLITTER### first you simply can't split the content, since the token will never be found by the split function. Got the point? Joey _______________________________________________ TYPO3-english mailing list TYPO3-english (AT) lists (DOT) netfielders.de http://lists.netfielders.de/cgi-bin/.../typo3-english |
|
#8
|
|||
|
|||
|
JoH kirjoitti:
>> Tried >> >> temp.customRender = CASE >> temp.customRender { >> key.field = colPos >> default < tt_content >> 0 < tt_content >> 1 < tt_content >> 4 < tt_content >> 0.text.stdWrap.dataWrap = <div class="basicText">|<br class="none" >> /></div> >> /* >> 0.text.stdWrap.split { >> token = ###SPLITTER### > > You are using the token ###SPLITTER### here. > ###SPLITTER### is just a name for a token that I invented together with this > solution. > It could even be something like ###WHATEVER###. > To make use of it you first have to insert it somehow into your code. > ###SPLITTER### is nothing that would be inserted by default, it has to be > inserted manually i.e. by a wrap, a cObject or however you like. > Without inserting the ###SPLITTER### first you simply can't split the > content, since the token will never be found by the split function. > > Got the point? > > Joey > > I got from Peter Klein - cut -- # Clear original "styles.content.get" styles.content.get > styles.content.get = COA styles.content.get { # Render all content elements, except the last one. 10 = CONTENT 10 { table = tt_content select.orderBy = sorting select.where = colPos=0 select.languageField = sys_language_uid select.max = total-1 renderObj < tt_content renderObj.stdWrap.wrap = <div class="contentElement">|</div> } # Render the last content element. 20 < .10 20.select.max > 20.select.begin = total-1 20.renderObj.stdWrap.wrap = <div class="lastContentElement">|</div> } -- cut -- With some modification that worked _______________________________________________ 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 |
| Re: [TYPO3] Wrap the content in RTE (htmlArea RTE) | Äàðüÿ Ëîícêàÿ | typo3-english@lists.netfielders.de | 1 | 10.09.2007 23:04 |
| [TYPO3] wrapping a website into the content area | David Banning | typo3-english@lists.netfielders.de | 1 | 02.03.2007 08:04 |
| [TYPO3] Header layout based on content area | Lasse Guldsborg | typo3-english@lists.netfielders.de | 4 | 12.02.2007 15:20 |
| [TYPO3] Different target for one content area | Tapio Markula | typo3-english@lists.netfielders.de | 0 | 05.02.2007 13:23 |
| [TYPO3] assign a content element to the end of a content area | Jamie Lawrence Jenner | typo3-english@lists.netfielders.de | 4 | 30.01.2007 17:02 |