Commit 337e8f9c authored by Georg Ringer's avatar Georg Ringer Committed by Christian Kuhn
Browse files

[!!!][TASK] Remove setting mod.web_layout.disableAdvanced

The TSconfig setting `mod.web_layout.disableAdvanced` has been used to disable
the "clear cache"-button in the page module.

Since this behaviour can be triggered through various other ways, like the
context menu or by just saving the page record, this feature is removed completely.

Resolves: #92837
Releases: master
Change-Id: Ie4c563d89280bc494265611924e2b02727aed644
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/66631

Tested-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Tested-by: default avatarTYPO3com <noreply@typo3.com>
Tested-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
Reviewed-by: Markus Klein's avatarMarkus Klein <markus.klein@typo3.org>
Reviewed-by: Christian Kuhn's avatarChristian Kuhn <lolli@schwarzbu.ch>
parent 1a9bc67d
......@@ -796,15 +796,14 @@ class PageLayoutController
$this->buttonBar->addButton($shortcutButton);
// Cache
if (empty($this->modTSconfig['properties']['disableAdvanced'])) {
$clearCacheButton = $this->buttonBar->makeLinkButton()
->setHref('#')
->setDataAttributes(['id' => $this->pageinfo['uid']])
->setClasses('t3js-clear-page-cache')
->setTitle($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.clear_cache'))
->setIcon($this->iconFactory->getIcon('actions-system-cache-clear', Icon::SIZE_SMALL));
$this->buttonBar->addButton($clearCacheButton, ButtonBar::BUTTON_POSITION_RIGHT, 1);
}
$clearCacheButton = $this->buttonBar->makeLinkButton()
->setHref('#')
->setDataAttributes(['id' => $this->pageinfo['uid']])
->setClasses('t3js-clear-page-cache')
->setTitle($lang->sL('LLL:EXT:core/Resources/Private/Language/locallang_core.xlf:labels.clear_cache'))
->setIcon($this->iconFactory->getIcon('actions-system-cache-clear', Icon::SIZE_SMALL));
$this->buttonBar->addButton($clearCacheButton, ButtonBar::BUTTON_POSITION_RIGHT, 1);
if (empty($this->modTSconfig['properties']['disableIconToolbar'])) {
// Edit page properties and page language overlay icons
if ($this->isPageEditable(0)) {
......
.. include:: ../../Includes.txt
=================================================================
Breaking: #92837 - Removed setting mod.web_layout.disableAdvanced
=================================================================
See :issue:`92837`
Description
===========
The TSconfig setting :ts:`mod.web_layout.disableAdvanced` has been used to disable the
"clear cache"-button in the page module.
Since this behaviour can be triggered through various other ways like the context menu or
by just saving the page record, this feature has been removed completely.
Impact
======
The setting :ts:`mod.web_layout.disableAdvanced` is not evaluated anymore and the "clear cache"-button
is always shown.
Affected Installations
======================
TYPO3 installations using the setting :ts:`mod.web_layout.disableAdvanced`.
Migration
=========
There is no migration possible.
.. index:: Backend, TSConfig, NotScanned, ext:backend
......@@ -253,7 +253,6 @@
'direction': kw('direction'),
'directory': B,
'directReturn': B,
'disableAdvanced': kw('disableAdvanced'),
'disableAllHeaderCode': kw('disableAllHeaderCode'),
'disableAltText': kw('disableAltText'),
'disableBodyTag': kw('disableBodyTag'),
......
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