You may have been unaware of it, but you have been accessing database fields up to this point. This section will show you how to access these database fields dynamically with TypoScript functions.
The field
function is a simple TypoScript function that lets you read out information from a database field. This function expects the name of the database field as an input value. If, for instance, the current page title is to be output within the page, the following can be transcribed:
page.10.marks.OUTPUT= TEXT page.10.marks.OUTPUT{ field = title }
The page title is in the title
database field. You may wonder why you don't have to explicitly state the table in which this title
field is located. It really is not necessary since TYPO3 knows in which table to find this field. TYPO3 uses a simple trick for this: If the field
function finds a PAGE
object, it automatically looks in the pages
table for the title
field. And another associated fact; the field
function...