Include content elements in a template via TypoScript

by Michael Cannon in TYPO3 · 0 comments

Here’s how you can include TYPO3 content elements into a specific spot of your template via TypoScript.

# use content element for search block
lib.static.search = RECORDS
lib.static.search.tables = tt_content
lib.static.search.source = 164

The tables property is the name of the TYPO3 database table being selected from.

The source property is the unique ID, often called uid, of the specific records to select. It’s possible to select multiple items through a comma separated list like `lib.static.search.source = 164,93,205`.

Content is selected in the same order it’s requested. This is very handy for easily changing content positions.

Reference

  • RECORDS


Revised since May 9, 2009

Be Sociable, Share!

Related Entries

About Michael Cannon

Hello, I'm Michael Cannon, Peichi's smiling man, an adventurous water-ratchief technology officer, cyclist, poet, WWOOF'er and world traveler.

Previous post:

Next post: