There are many operators in TypoScript. You have already seen some of these operators in earlier sections of this chapter.
You have already used the most important operator, the assignment operator =
(equality sign). This operator can be used to define an object by assigning another object to it. It is also used to give properties their values. The syntax is always the same. To the left of the equality sign is the signifier of the object and/or the property. Everything to the right of the equality sign is assigned to the object or property as its value.
page = PAGE page.typeNum = 0 page.10 = TEXT page.10.value = Hello World!
In this example the =
operator is used several times. The line page = PAGE
creates an object of the type PAGE
and with the name page. typeNum
is a property of the object type PAGE
. Here this property is assigned the value 0
. In the third line page.10
is defined as an object of the type TEXT
. Finally you assign the value Hello World! to the...