Commit 5ddb5be7 authored by Georg Ringer's avatar Georg Ringer Committed by Wouter Wolters
Browse files

[!!!][TASK] Deprecate usage of record rendering in page module

To follow the concept of apps and avoiding code duplications and
confusion of users, the rendering of records in the page module
is deprecated.

Resolves: #77987
Releases: master
Change-Id: Iece5a1855129db7098ac58e0e2a3bbc9d0d557cb
Reviewed-on: https://review.typo3.org/49968


Tested-by: default avatarTYPO3com <no-reply@typo3.com>
Reviewed-by: default avatarMichael Oehlhof <typo3@oehlhof.de>
Tested-by: default avatarMichael Oehlhof <typo3@oehlhof.de>
Reviewed-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
Tested-by: Wouter Wolters's avatarWouter Wolters <typo3@wouterwolters.nl>
parent 316400e0
......@@ -222,6 +222,7 @@ class PageLayoutController
* Array of tables to be listed by the Web > Page module in addition to the default tables
*
* @var array
* @deprecated since TYPO3 CMS 8, will be removed in TYPO3 CMS 9.
*/
public $externalTables = [];
......@@ -382,6 +383,12 @@ class PageLayoutController
// 'fList' => 'title,description,image',
// 'icon' => TRUE));
if (is_array($this->externalTables)) {
if (!empty($this->externalTables)) {
GeneralUtility::deprecationLog('The rendering of records in the page module by using '
. '$GLOBALS[\'TYPO3_CONF_VARS\'][\'EXTCONF\'][\'cms\'][\'db_layout\'][\'addTables\']'
. ' has been deprecated since TYPO3 CMS 8 and will be removed in TYPO3 CMS 9.'
);
}
foreach ($this->externalTables as $table => $tableSettings) {
// delete the default settings from above
if (is_array($this->MOD_MENU[$table])) {
......
......@@ -1183,21 +1183,5 @@ return [
'cliKeys' => []
],
],
'EXTCONF' => [
// Here you may add manually set configuration options for your extensions. Eg. $TYPO3_CONF_VARS['EXTCONF']['my_extension_key']['my_option'] = 'my_value';
'cms' => [
'db_layout' => [
'addTables' => [
'fe_users' => [
0 => [
'MENU' => '',
'fList' => 'username,usergroup,name,email,telephone,address,zip,city',
'icon' => true
]
]
]
]
]
],
'SVCONF' => []
];
.. include:: ../../Includes.txt
============================================================
Breaking: #77987 - Removal fe_users rendering in page module
============================================================
Description
===========
Because of the deprecation of :php:`$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables']`,
the records of the table ``fe_users`` are not rendered any more in the page module.
Affected Installations
======================
All installations.
Migration
=========
By using the following code in the :php:`ext_localconf.php` file, the records can be shown again:
.. code-block:: php
$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables']['fe_users'] =
array (0 => array(
'MENU' => '',
'fList' => 'username,usergroup,name,email,telephone,address,zip,city',
'icon' => true
)
);
\ No newline at end of file
.. include:: ../../Includes.txt
==============================================================
Deprecation: #77987 - Deprecated record listing in page module
==============================================================
Description
===========
The usage of :php:`$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables']` to render records in the page module has been deprecated.
Affected Installations
======================
All installations using :php:`$GLOBALS['TYPO3_CONF_VARS']['EXTCONF']['cms']['db_layout']['addTables']`.
Migration
=========
No migration available.
\ No newline at end of file
Supports Markdown
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