DEPRECATION WARNING

This documentation is not using the current rendering mechanism and will be deleted by December 31st, 2020. The extension maintainer should switch to the new system. Details on how to use the rendering mechanism can be found here.

Table

Table-type content elements are not rendered using a standard TypoScript content object but instead rely on a USER object provided by CSS Styled Content, as can be seen in the TypoScript setup:

tt_content.table = COA
tt_content.table {
        10 = < lib.stdheader

        20 = USER
        20.userFunc = tx_cssstyledcontent_pi1->render_table
        20.field = bodytext
        ...
}
Table content element

Input of a table content element in the TYPO3 backend

The render_table function supports a whole variety of specific properties, which are detailed below.

Note

All properties of USER objects also apply, in particular stdWrap.

Reference

field

Property

field

Data type

data

Description

The field to fetch the content from.

Default

bodytext

innerStdWrap

Property

innerStdWrap

Data type

stdWrap

Description

StdWrap to the content of the table cells.

With this you can for example pass the content through lib.parseFunc

Default

innerStdWrap.parseFunc =< lib.parseFunc

color

Property

color

Data type

t3tsref:data-type-html-color

Description

Background Color of the table. Some predefined values are already there. (Look into the background color dropdown of the table element)

Add your own with

color.[dropDownId] = #000000

Fallback is

color.default =

Default

1 = #EDEBF1

2 = #F5FFAA

tableParams_[layout]

Property

tableParams_[layout]

Data type

border,

cellpadding,

cellspacing

Description

Table params dependent on the selected layout (dropdown). You should better use CSS to style your tables.

For example:

tableParams_0 {
        border =
        cellpadding =
        cellspacing =
}