[TYPO3] Apply a style to an entire content element

Erik Svendsen erik at linnearad.no
Tue May 30 10:08:24 CEST 2006


Hello Tapio,

> Erik Svendsen wrote:
> 
>> Hello Simon,
>> 
>>> Is this possible?  Using t3v4, templavoila.
>>> 
>>> I have a style called .specialbox that gives me a border, different
>>> colour background, font, etc. that I'd like to apply to an entire
>>> text element, header and all ... can it be done?
>>> 
>>> Thanks.
>>> 
>>> Simon
>>> 
>> Yes!
>> But what kind of element do you want it applied to. Content element,
>> FCE, menus, other element.
>> Search on the TemplaVoila list, maybe you find answer there. There
>> are different ways to do it, depending on which type of element you
>> are going to wrap, or if you are going to do it for every element of
>> certain type or not.
>> 
> You don't need for that TemplaVoila.
> If you use the standard page module you can set different styles using
> th_specialemelements, fdfx_2cols and fdfx_3cols - these works as
> replacement of ordinaty text content.
> kb_contenttable works for all kinds of content elements - using
> different classes for tables you can get different layout

This is a stupid answer. If the guy uses TV, you give the answer how to do 
it with TV (or how to find a solution to do it with TV). And you don't need 
to install extensions to achieve different layouts. You can use TS to change 
the stdWrap of content element to how you like it. Even make a lot of different 
wraps, which can be chosen within. And what he is asking for is very easy 
to achieve with TV. And it also is very easy to use for editors.

Fdfx_2cols and fdfx_3cols can be used with TV with no problem at all. So 
they aren't any argument for changing from TV. th_specialelements can also 
be used with TV, but you have to rewrite the templates if you want a tableless 
design. kb_conttable also works okay with TV, but is "no way" if you want 
tableless design. 

Maybe you find standard page module the easy way for you. Others, like me, 
wouldn't drop the TV way for different reasons.

WBR,
Erik Svendsen
www.linnearad.no





More information about the TYPO3-english mailing list