Skip to content

Commit

Permalink
Document accessing TypoScript constants (#614)
Browse files Browse the repository at this point in the history
  • Loading branch information
cweiske authored Jan 17, 2024
1 parent 9650638 commit b1e6829
Show file tree
Hide file tree
Showing 2 changed files with 22 additions and 0 deletions.
1 change: 1 addition & 0 deletions Documentation/Guides/Index.rst
Original file line number Diff line number Diff line change
Expand Up @@ -20,3 +20,4 @@ functionality.
RTEConfig
UseExistingTCAFields
NewContentElementWizard
TypoScriptConstants
21 changes: 21 additions & 0 deletions Documentation/Guides/TypoScriptConstants.rst
Original file line number Diff line number Diff line change
@@ -0,0 +1,21 @@
.. include:: ../Includes.txt

.. _typoscriptconstants-guide:

==============================
Accessing TypoScript constants
==============================

To access a TypoScript constant in content elements,
first make it available to all mask elements via TypoScript:

.. code-block:: typoscript
lib.maskContentElement {
settings {
pageTitle = {$mysitepackage.page.title}
}
}
In your mask content element fluid template it can be accessed via
:html:`{settings.pageTitle}`.

0 comments on commit b1e6829

Please sign in to comment.