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

Fix code example for lib TS object #1303

Merged
merged 2 commits into from
Jul 10, 2024
Merged
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
9 changes: 5 additions & 4 deletions Documentation/TopLevelObjects/Other.rst
Original file line number Diff line number Diff line change
Expand Up @@ -62,8 +62,9 @@ lib
TypoScript code.

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

.. code-block:: typoscript
Expand All @@ -76,10 +77,10 @@ lib
// <p>Hello World!</p><p>Hello World!</p>
page = PAGE
page {
10 <= lib.some_content
10 =< lib.some_content
10.wrap = <h1>|</h1>

20 <= lib.some_content
20 =< lib.some_content
20.wrap = <p>|</p>
}

Expand Down
Loading