Attention

TYPO3 v6 has reached its end-of-life April 18th, 2017 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 strongly recommended updating your project.

TypoScript functions

TypoScript functions are used to change and adjust the output of content elements. The most popular function is the standard wrap, better known as stdWrap. Whether an object implements a certain function or not, is shown in TSref in the column "data type". Here is an extract of the cObject IMAGE from TSref:

Property

file

Data type

imgResource

Description

[...]

Property

imageLinkWrap

Data type

boolean /->imageLinkWrap

Description

[...]

Property

if

Data type

->if

Description

[...]

Property

altText

titleText

Data type

string /stdWrap

Description

[...]

[Example:(cObject).IMAGE]

The first entry in this example (property "file") tells us that "file" is of the data type "imgResource". This means that we can use the imgResource functions on the file property.

Sometimes functions are - for better recognition - marked with an arrow (i.e. ->if).

If there are multiple entries separated by a forward slash (/), it means that you have various possibilities for using with that element. In the example above, you can, for example, see this with titleText and altText. Both can be either plain string or stdWrap. Thus, you can enter a plain string and do nothing more, you can adjust and change your string by using stdWrap features on it, or you can leave the string empty altogether and generate the content with stdWrap only.

Some important and frequently-used functions are presented in the subsections ahead. This chapter is about introducing those functions, and where they can be used. All details, however, can be found in TSref, and not here.