@@ -8,45 +8,6 @@ Reserved top-level objects
88.. contents :: List of the reserved top-level objects
99 :depth: 1
1010
11- .. index :: Top-level objects; temp
12-
13- .. _top-level-objects-temp :
14- .. _tlo-temp :
15-
16- temp
17- ====
18-
19- .. confval :: temp
20- :name: tlo-temp
21-
22- This top-level object name is reserved.
23-
24- The top-level object :typoscript: `temp ` is used to store and copy
25- TypoScript code during parse time.
26-
27- :typoscript: `temp ` is unset before the template is cached, objects in it
28- can therefore not be referenced. Use :confval: `tlo-lib ` for that purpose.
29-
30- Example: Use the top-level object `temp ` to copy code
31- -----------------------------------------------------
32-
33- .. code-block :: typoscript
34- :caption: EXT:my_sitepackage/Configuration/TypoScript/setup.typoscript
35-
36- temp.some_content = TEXT
37- temp.some_content.value = Hello World!
38-
39- // Output
40- // <h1>Hello World!</h1><p>Hello World!</p>
41- page = PAGE
42- page {
43- 10 < temp.some_content
44- 10.wrap = <h1>|</h1>
45-
46- 20 < temp.some_content
47- 20.wrap = <p>|</p>
48- }
49-
5011.. index :: Top-level objects; lib
5112
5213.. _top-level-objects-lib :
6425 TypoScript code.
6526
6627 This top-level object is available after the template is cached,
67- objects in it can therefore be referenced by using the
28+ objects in it can therefore be referenced and copied by using the
6829 :ref: `reference operator <typoscript-syntax-syntax-object-referencing >` :typoscript: `=< `.
69- Just like with a :confval: `tlo-temp ` object copying is
70- also possible.
7130
7231.. code-block :: typoscript
7332 :caption: EXT:my_sitepackage/Configuration/TypoScript/setup.typoscript
0 commit comments