Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Remove the section for the TLO “temp.” as no unset() is executed anymore #1425

Merged
merged 3 commits into from
Nov 14, 2024
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
1 change: 0 additions & 1 deletion Documentation/TopLevelObjects/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -27,7 +27,6 @@ page | ... :ref:`PAGE <page-datatype>`
config :ref:`CONFIG <config-datatype>`
:ref:`plugin`
:ref:`tlo-module`
:ref:`temp <tlo-temp>`
:ref:`styles <tlo-styles>`
:ref:`lib <tlo-lib>`
:ref:`tt_* <tlo-tt>`
Expand Down
43 changes: 1 addition & 42 deletions Documentation/TopLevelObjects/Other.rst
Original file line number Diff line number Diff line change
Expand Up @@ -8,45 +8,6 @@ Reserved top-level objects
.. contents:: List of the reserved top-level objects
:depth: 1

.. index:: Top-level objects; temp

.. _top-level-objects-temp:
.. _tlo-temp:

temp
====

.. confval:: temp
:name: tlo-temp

This top-level object name is reserved.

The top-level object :typoscript:`temp` is used to store and copy
TypoScript code during parse time.

:typoscript:`temp` is unset before the template is cached, objects in it
can therefore not be referenced. Use :confval:`tlo-lib` for that purpose.

Example: Use the top-level object `temp` to copy code
-----------------------------------------------------

.. code-block:: typoscript
:caption: EXT:my_sitepackage/Configuration/TypoScript/setup.typoscript

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>
}

.. index:: Top-level objects; lib

.. _top-level-objects-lib:
Expand All @@ -64,10 +25,8 @@ lib
TypoScript code.

This top-level object is available after the template is cached,
objects in it can therefore be referenced by using the
objects in it can therefore be referenced and copied by using the
:ref:`reference operator <typoscript-syntax-syntax-object-referencing>` :typoscript:`=<`.
Just like with a :confval:`tlo-temp` object copying is
also possible.

.. code-block:: typoscript
:caption: EXT:my_sitepackage/Configuration/TypoScript/setup.typoscript
Expand Down
Loading