Commit 89de481e authored by Jan Stockfisch's avatar Jan Stockfisch Committed by Christian Kuhn
Browse files

[TASK] Add customization examples for felogin

Adds examples of how to override core templates.

Resolves: #90566
Releases: master, 10.4
Change-Id: I09f7b89542cc7f22c56b6689b9e9b6d0d066fc74
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/63478

Tested-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Tested-by: Daniel Goerz's avatarDaniel Goerz <daniel.goerz@posteo.de>
Tested-by: core-ci's avatarcore-ci <typo3@b13.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Benni Mack's avatarBenni Mack <benni@typo3.org>
Reviewed-by: Daniel Goerz's avatarDaniel Goerz <daniel.goerz@posteo.de>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 210350f3
......@@ -27,4 +27,24 @@ for customization. All existing templates are found in
EXT:felogin/Resources/Private/Templates/{Login,PasswordRecovery}
Examples
========
Overriding Templates:
All templates are now fluid based, which means they can be overridden by other extensions via typoscript. For example:
To overwrite the :php:`\TYPO3\CMS\FrontendLogin\Controller\LoginController::loginAction()` template with an own one
located in :file:`EXT:my_extension/Resources/Private/Templates/Felogin/Login/Login.html`, the following config will do
the trick.
.. code-block:: typoscript
plugin.tx_felogin_login {
view {
templateRootPaths {
10 = EXT:my_extension/Resources/Private/Templates/Felogin/
}
}
}
.. index:: Frontend, LocalConfiguration, ext:felogin
Markdown is supported
0% or .
You are about to add 0 people to the discussion. Proceed with caution.
Finish editing this message first!
Please register or to comment