Include content elements in a template via TypoScript

May 29, 2012
Content Element HTML

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


Revised since May 9, 2009

Related Entries

Donate for Good Karma

Your donation helps enable Aihrus's volunteer efforts towards mentoring young developers and supporting Open Source projects.

TYPO3, logo, bronze member

No money? Leave a testimonial for Aihrus instead.

×

Log In


Need an account? Register
Forgot your password? Recover

Guest Purchase?

If you purchased as a guest, then you need to convert to a real account before accessing your purchases.

×

Register


Already registered? Log In

×