[TYPO3] 'Type'-field defines CE layout

Robert Markula robert.markula at gmx.net
Thu Jan 19 16:38:34 CET 2006


Peter Niederlag wrote:
> Hi,
> 
> Robert Markula schrieb:
>> Hi!
>> I would like to use the 'Type' field ('header_layout' in TS) in content
>> elements to define the layout of the content element. To do this I want
>> to wrap the whole content element in the FE in a <div class="layout1"> |
>> </div> wrap, so I can style the appearence with CSS.
>> How can I do this with TS so the whole content is preserved (that is,
>> the content should stay as it is; only wrapped in a div)?
> 
> You are missing ields/labels here, 'header_layout' just wraps the
> header. Most likely you want to use the 'section_frame' field.
> 
> You can set a default like this:
> 
> tt_content.stdWrap.innerWrap.cObject.default = TEXT
> tt_content.stdWrap.innerWrap.cObject.default {
>   value = <div class="csc-frame csc-frame-default">|</div>
>   }
You're right, I looked at the wrong element.
Just a last thing: How can I change the language labels ('Invisible', 
'Ruler before', 'Ruler after' etc.)?

> maybe I'll suggest to set this as default in 4.0?
I wouldn't do that. This default won't be needed most times and it just 
adds unnecessary code. If somebody needs that, he can set it on his own 
by TS.

Regards,
Ro



More information about the TYPO3-english mailing list