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

[TASK] #102499 - User TSconfig setting "overridePageModule" removed #417

Merged
merged 1 commit into from
Dec 19, 2023
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
50 changes: 30 additions & 20 deletions Documentation/UserTsconfig/Options.rst
Original file line number Diff line number Diff line change
Expand Up @@ -796,31 +796,41 @@ noThumbsInEB
If set, then image thumbnails are not shown in the element browser.


.. todo:: can we remove this?
.. _useroptions-overridePageModule:

overridePageModule
------------------

.. confval:: overridePageModule

:Data type: string

By this value you can substitute the default :guilabel:`Web > Page` module
key ("web\_layout") with another backend module key.

.. note::
This property has been introduced for EXT:templavoila in the old days.
It is of little use nowadays and can be achieved using
:ref:`hideModules <useroptions-hideModules>`, too.

Example:

.. code-block:: typoscript
:caption: EXT:site_package/Configuration/user.tsconfig

# Enable TemplaVoila page module as default page module.
options.overridePageModule = web_txtemplavoilaM1
.. versionchanged:: 13.0
This setting has been removed.

Migration
~~~~~~~~~

In order to replace the :guilabel:`Web > Page` module within a third-party
extension, such as TemplaVoila, it is possible to create a custom module entry
in an extension's :file:`Configuration/Backend/Modules.php` with the following
entry:

.. code-block:: php
:caption: EXT:my_extension/Configuration/Backend/Modules.php

return [
'my_module' => [
'parent' => 'web',
'position' => ['before' => '*'],
'access' => 'user',
'aliases' => ['web_layout'],
'path' => '/module/my_module',
'iconIdentifier' => 'module-page',
'labels' => 'LLL:EXT:backend/Resources/Private/Language/locallang_mod.xlf',
'routes' => [
'_default' => [
'target' => \MyVendor\MyExtension\Controller\MyController::class . '::mainAction',
],
],
],
];


.. index:: Page tree
Expand Down
Loading