[Typo3] define a wrapper for specific table layout??

Peter Russ peter.russ at 4many.net
Mon Sep 5 17:35:01 CEST 2005


tapio wrote:

> 
[...]

> I see sense with this. I added for ordinary text/ text-w-images a div.
> You can control with the div layout better.
> 
> If you want for example different background color for a section of page 
>  but *you DON'T* want set the width of the table and set background for 
> the table.
> 
> DIV takes the *whole* available width - because the width control 
> behaves differenty for DIV and TABLE it is *very reasonable* to set DIV 
> for the CType 'table'.
> 
> You can get for the CType 'table' special layout *only* using DIV!
> 
>> ?
>>
>> Regs. Peter.

Okay I see: have a look at lib.stdheader and how register are used there 
and then use stdWrap. of tt_content.table to add what you want, e.g:

tt_content.table.20.stdWrap.wrap=<div{register:tableClass}>|</div>

Not tested.


Regs. Peter.


-- 
_____________________________
4Many® Services
openBC: http://www.openbc.com/go/invuid/Peter_Russ



More information about the TYPO3-english mailing list