Top-level objects¶
Top-level object | Data Type | stdWrap | Default |
---|---|---|---|
((abc ...?)) | PAGE | ||
((bcd ...?)) | (whatever) | ||
config | config | ||
constants | constants | ||
Other reserved TLO's: | (whatever) | ||
resources | readonly | ||
sitetitle | readonly | ||
types | readonly |
((abc ...?))¶
Property
...
Data type
Description
Start a new page.
Example:
page = PAGE
page.typeNum = 1
Guidelines:
Good, general PAGE
object names to use are such as:
page for the main page with content
json for a json stream with content
xml for a XML stream with content
These are just recommendations. However, especially the name page
for the content bearing page is very common and most documentation will
imply that your main page object is called page
.
((bcd ...?))¶
Property
...
Data type
(whatever)
Description
If a top-level object is not a PAGE object it could be used as a
temporary repository for setup. In this case you should use the temp
or styles
objects.
tt_...
is normally used to define the setup of content-records. E.g.
tt_content
would be used for the tt_content
-table as default. See
CONTENT.
config¶
Property
config
Data type
Description
Global configuration.
These values are stored with cached pages which means they are also accessible when retrieving a cached page.
constants¶
Other reserved TLO's:¶
Property
Other reserved TLO's:
plugin
tt_*
temp
styles
lib
_GIFBUILDER
Data type
(whatever)
Description
These top-level object names are reserved. That means you can risk static_templates to use them:
plugin
is used for rendering of special content like boards,
e-commerce solutions, guestbooks and so on. Normally set from
static_templates.
tt_
, e.g. tt_content
(from "content (default)") is used to
render content from tables.
temp
and styles
are used for code-libraries you can
copy during parse-time, but they are not saved with the template in
cache. temp
and styles
are unset before the template is
cached! Therefore use these names to store temporary data.
lib
can be used for a "library" of code, you can reference in
TypoScript (unlike styles
which is unset).
resources¶
Property
resources
Data type
readonly
Description
Resources in list (internal)
sitetitle¶
Property
sitetitle
Data type
readonly
Description
SiteTitle (internal)
types¶
Property
types
Data type
readonly
Description
Types (internal)
type=99
reserved for plaintext display