Skip to content

Commit

Permalink
[FEATURE] #102815 - Support ApplicationContext in TypoScript data (#1064
Browse files Browse the repository at this point in the history
)

Resolves: TYPO3-Documentation/Changelog-To-Doc#790

Releases: main

Co-authored-by: Christian Jäger <[email protected]>
  • Loading branch information
Christobal79 and Christian Jäger authored Feb 6, 2024
1 parent 99e27da commit 3350c86
Showing 1 changed file with 23 additions and 0 deletions.
23 changes: 23 additions & 0 deletions Documentation/Functions/Data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -58,6 +58,29 @@ Properties
.. contents::
:local:

.. _data-type-gettext-applicationcontext:

applicationcontext
------------------

:aspect:`getText Key:`
applicationcontext

:aspect:`Description:`
Returns the current :ref:`application context <t3coreapi:application-context>`
as string.

:aspect:`Example:`
Evaluate if the current application context is "Production":

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/TypoScript/setup.typoscript
if {
value.data = applicationcontext
equals = Production
}
.. _data-type-gettext-cobj:

cObj
Expand Down

0 comments on commit 3350c86

Please sign in to comment.