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.

styles.content.get

"css_styled_content" does more than just provide us with rendering definitions. It also provides useful CONTENT objects definitions.

So far our code looks like this:

page.10 = CONTENT
page.10.table = tt_content
page.10.select {

    # Use the sorting of the backend. We could as well use the date field or the header.
    orderBy = sorting

    # normal column
    where = colPos = 0
}

We can reuse predefined objects from "css_styled_content" and write the following instead:

# This returns content from the "normal" column (colPos = 0).
page.10 < styles.content.get

There are similar definitions for the other columns:

# This returns content from the "left" column (colPos = 1).
page.10 < styles.content.getLeft

# This returns content from the "right" column (colPos = 2).
page.10 < styles.content.getRight

# This returns content from the "border" column (colPos = 3).
page.10 < styles.content.getBorder