Skip to content
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
2 changes: 2 additions & 0 deletions Documentation/404.rst
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,8 @@ TYPO3 v14
.. _appendix-include-tsfe-feuser-migration:
.. _appendix-include-tsfe-rootLine:
.. _appendix-include-tsfe-table-row:
.. _data-type-gettext-tsfe:
.. _data-type-gettext-tsfe-example:

TypoScriptFrontendController, TSFE
----------------------------------
Expand Down
41 changes: 1 addition & 40 deletions Documentation/Functions/Data.rst
Original file line number Diff line number Diff line change
Expand Up @@ -511,8 +511,7 @@ global
:name: data-global
:Syntax: global : [variable]

Deprecated. Use :ref:`data-type-gettext-gp`, :ref:`data-type-gettext-tsfe` or
:ref:`data-type-gettext-getenv`.
Deprecated. Use :ref:`data-type-gettext-gp` or :ref:`data-type-gettext-getenv`.

.. _data-type-gettext-gp:

Expand Down Expand Up @@ -1071,41 +1070,3 @@ Example: Access the redirects HTTP status code

page.10 = TEXT
page.10.data = siteSettings:redirects.httpStatusCode


.. _data-type-gettext-tsfe:

TSFE
----

.. confval:: TSFE
:name: data-tsfe
:Syntax: TSFE: [value from the :php:`$GLOBALS['TSFE']` array, multi-dimensional]

Returns a value from
:php:`TYPO3\CMS\Frontend\Controller\TypoScriptFrontendController`.


.. versionchanged:: 13.0
The following TypoScriptFrontendController (TSFE) properties have
been removed:

* :php:`spamProtectEmailAddresses`
* :php:`intTarget`
* :php:`extTarget`
* :php:`fileTarget`
* :php:`baseUrl`

Migrate these properties to the config property. You can access the
TypoScript properties directly, for example, via
:typoscript:`lib.something.data = TSFE : config | config | fileTarget`

.. _data-type-gettext-tsfe-example:

Example: Get the username field of the current frontend user
~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~~

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

lib.foo.data = TSFE : fe_user | user | username