Reserved top-level objects¶
temp¶
-
temp
¶ -
This top-level object name is reserved.
The top-level object
temp
is used to store and copy TypoScript code during parse time.temp
is unset before the template is cached, objects in it can therefore not be referenced. Use lib for that purpose.
Example: Use the top-level object temp
to copy code¶
temp.some_content = TEXT
temp.some_content.value = Hello World!
// Output
// <h1>Hello World!</h1><p>Hello World!</p>
page = PAGE
page {
10 < temp.some_content
10.wrap = <h1>|</h1>
20 < temp.some_content
20.wrap = <p>|</p>
}
lib¶
-
lib
¶ -
This top-level object name is reserved.
The top-level object
lib
is used to store, copy and reference TypoScript code.This top-level object is available after the template is cached, objects in it can therefore be referenced by using the reference operator
=<
. Just like with a temp object copying is also possible.
lib.some_content = TEXT
lib.some_content.value = Hello World!
// Output
// <p>Hello World!</p><p>Hello World!</p>
page = PAGE
page {
10 =< lib.some_content
10.wrap = <h1>|</h1>
20 =< lib.some_content
20.wrap = <p>|</p>
}
styles¶
-
styles
¶
tt_content¶
The top-level keyword tt_
is used to render content
from the table tt_
.
resources¶
-
resources
¶ -
- Type
- readonly
Resources in list (internal)
sitetitle¶
-
sitetitle
¶ -
- Type
- readonly
SiteTitle (internal)