[TYPO3] Problem styling tables (contenttable)

Morten Kjems mortenkjems at gmail.com
Tue May 8 12:59:53 CEST 2007


Thanks Dmitry.

This is all new to me and it's a little hard to understand the content 
of the document.

But maybe this is the part I am looking for:

-----------------------------------------
Part 5: Rendering the website

Content from the database is processed for display on the website. 
Depending on the storage format this might also involve "transformation" 
of content. For instance the internal "<link>" tag has to be converted 
into an HTML <a> tag.

The processing normally takes place with TypoScript Templates, the "CSS 
Styled Content" extension (TS object path "lib.parseFunc_RTE")
-----------------------------------------

I am thinking that the class "contenttable" can be configured through 
"CSS Styled Content". The file pi1/class.tx_cssstyledcontent_pi1.php 
holds the following code:

-----------------------------------------
// Table tag params.
			$tableTagParams = $this->getTableAttributes($conf,$type);
			if (!$noStyles)	{
				$tableTagParams['class'] = 'contenttable 
contenttable-'.$type.($tableClass?' '.$tableClass:'');
			} elseif ($tableClass) {
				$tableTagParams['class'] = $tableClass;
			}
-----------------------------------------

But to be honest I got no clue how to edit it, or maybe I am just 
completely of track. Am I?

All suggestions on how to solve this problem are most welcome.

/Morten



Dmitry Dulepov skrev:
> Morten Kjems wrote:
>> Hi.
>>
>> I am using Tinyrte to create tables for my pages.
>>
>> I use several different styles for my tables and it is nice that I can 
>> attach these styles with a few clicks using Tinyrte.
>>
>> But the problem is TYPO3 somehow overwrites the classes that I have 
>> defined in my stylesheet and attach a default class named: 
>> "contenttable".
>>
>> Is there a way to avoid this automatic attachment of the style 
>> "contenttable" so that I can use my own styles?
>>
>> All suggestions are Welcome.
> 
> I think you need to look for RTE transformations. It is not the easiest 
> topic but managable :) Here is the link to look to:
> 
> http://typo3.org/documentation/document-library/core-documentation/doc_core_api/4.1.0/view/5/2/ 
> 
> 


More information about the TYPO3-english mailing list