[TYPO3] Apply a style to an entire content element

Alex Heizer alex at tekdevelopment.com
Tue May 30 09:30:02 CEST 2006


Hi,

Tapio Markula wrote:
> 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
> _______________________________________________
> TYPO3-english mailing list
> TYPO3-english at lists.netfielders.de
> http://lists.netfielders.de/cgi-bin/mailman/listinfo/typo3-english
>
>   
Actually, you don't even need TV for this if you use the Content Wrapper 
extension (EXTKEY: contentwrapper). You set up frames that contain all 
the elements, then in the "Frame:" dropdown, you choose each frame you 
set up. So, you can style as many different frames as you want to give 
you the looks you need, including having a different Frame1 for the 
left, normal, right or border columns. So style each one and float them 
how you need them. Then, it's pretty easy for a content editor to choose 
"normal column, frame 3" instead of trying to map an FCE.

Alex





More information about the TYPO3-english mailing list