[TYPO3] bodyTag depends on columns

Hauke Haller haller at led-info.de
Mon Mar 6 21:57:32 CET 2006


Pierre Rouwens schrieb:
> tapio a écrit :
> 
>> Pierre Rouwens wrote:
>>
>>> Hi again,
>>>
>>> I've tried another way with this :
>>> std.bodyTagCObject = COA
>>> std.bodyTagCObject.10 = TEXT
>>> std.bodyTagCObject.10.value = <body id="col3">
>>> std.bodyTagCObject.10.if.isTrue.cObject < std.10.subparts.colonne_droite
>>> std.bodyTagCObject.20 = TEXT
>>> std.bodyTagCObject.20.value = <body id="col2">
>>> std.bodyTagCObject.20.if.isFalse.cObject < 
>>> std.10.subparts.colonne_droite
>>>
>>> But it works as it isFalse doesn't work at all i have all time <body 
>>> id="col3">.
>>>
>>> Any idea ?
>>
>>
>> Why not just use different classes in content area templates?
> 
> Hi Tapio :)
> 
> Simply because i'm not the guy who makes the HTML template...
> But i wonder if it s possible to do this in this way cause i ve tried 
> many many ways without any success.
> 
> Pierre
Hi Pierre,
I think this was working:

page {
  bodyTag= <body class="onecolumn">
  bodyTag.override = <body class="twocolumn">
  bodyTag.override.if.isFalse.cObject.numRows {
    table = tt_content
    select.where = colPos=1
    }
  }

So only if there is no content in colPos 1 the class is "onecolumn"

Maybe it helps.

Hauke



More information about the TYPO3-english mailing list