Attention

TYPO3 v7 has reached its end-of-life November 30th, 2018 and is not maintained by the community anymore. Looking for a stable version? Use the version switch on the top left.

There is no further ELTS support. It is recommended that you upgrade your project and use a supported version of TYPO3.

CTABLE

Note

This content object has been deprecated in TYPO3 CMS 7.1. If you still use it for now, you need to install the extension "compatibility6". In the long run, you are advised to migrate to alternatives such as FLUIDTEMPLATE to customize the output of the content.

Creates a table in which you can define the content of the various cells.

A CTABLE is a little more feature packed than the simple OTABLE. It features a content column and four surrounding columns, which may be useful for putting menus into them.

Property

offset

Data type

x,y /stdWrap

Description

Offset from upper left corner.

Default

0,0

Property

tm

Data type

->CARRAY +TDParams /stdWrap

Description

TopMenu

The default value of TDParams is: valign="top".

stdWrap is available for the property TDParams.

Property

lm

Data type

->CARRAY +TDParams /stdWrap

Description

LeftMenu

The default value of TDParams is: valign="top".

stdWrap is available for the property TDParams.

Property

rm

Data type

->CARRAY +TDParams /stdWrap

Description

RightMenu

The default value of TDParams is: valign="top".

stdWrap is available for the property TDParams.

Property

bm

Data type

->CARRAY +TDParams /stdWrap

Description

BottomMenu

The default value of TDParams is: valign="top".

stdWrap is available for the property TDParams.

Property

c

Data type

->CARRAY +TDParams /stdWrap

Description

Content-cell

The default value of TDParams is: valign="top".

stdWrap is available for the property TDParams.

Property

cMargins

Data type

margins /stdWrap

Description

Distance around the content-cell "c".

Default

0,0,0,0

Property

cWidth

Data type

pixels /stdWrap

Description

Width of the content-cell "c".

Property

tableParams

Data type

<TABLE>-params /stdWrap

Description

Attributes of the table tag.

Default

border="0" cellspacing="0" cellpadding="0"

Property

stdWrap

Data type

->stdWrap

[tsref:(cObject).CTABLE]

Example:

page.10 = CTABLE
page.10 {
  offset = 5, 0
  tableParams = style="border-width: 0px; width: 400px;"
  cWidth = 400
  c.1 = CONTENT
  c.1.table = tt_content
  c.1.select {
    pidInList = this
    orderBy = sorting
  }

  tm.10 < temp.sidemenu
  tm.TDParams = style="vertical-align: top;"

  stdWrap.wrap = <div id="mytable">|</div>
}