[Typo3] Column dependent wrap? [solution]
Bert Hiddink [BENDOO e-work solutions]
hiddink at bendoo.com
Sat May 21 10:15:19 CEST 2005
Hello!
Bert Hiddink wrote:
> Hello!
>
> I am still stuck with this column-dependent wrap. I can select and render content from a specific column like this:
...
Finally, I figured out the following solution which I would like to
share with you:
#################
# wrap left content
#################
temp.contentLeftRepeat = CONTENT
temp.contentLeftRepeat {
table = tt_content
select {
pidInList = this
where = colpos=1
}
renderObj.20 = TEXT
renderObj.20.field = header
renderObj.21 = TEXT
renderObj.21.field = bodytext
renderObj.stdWrap.wrap = {$leftWrap}
}
#################
# wrap middle content
#################
temp.contentMiddleRepeat = CONTENT
temp.contentMiddleRepeat {
table = tt_content
select {
pidInList = this
where = colpos=0
}
renderObj.20 = TEXT
renderObj.20.field = header
renderObj.21 = TEXT
renderObj.21.field = bodytext
renderObj.stdWrap.wrap = {$middleWrap}
}
#################
# wrap right content
#################
temp.contentRightRepeat = CONTENT
temp.contentRightRepeat {
table = tt_content
select {
pidInList = this
where = colpos=2
}
renderObj.20 = TEXT
renderObj.20.field = header
renderObj.21 = TEXT
renderObj.21.field = bodytext
renderObj.stdWrap.wrap = {$rightWrap}
}
So far, this works fine for me. Nevertheless, if you have comments or
suggestions, please let me know!
grt,
-brt
--
Bert Hiddink
hiddink at bendoo.nl
BENDOO e-work solutions
http://www.bendoo.nl
Harterinkdijk 8, 7065 AR SINDEREN
The Netherlands
Tel. 0315 244525
More information about the TYPO3-english
mailing list