Skip to content
Snippets Groups Projects
Commit 9f9fcff1 authored by Oliver Bartsch's avatar Oliver Bartsch
Browse files

[BUGFIX] Respect titleLen setting for page title in page module

The "titleLen" setting is now respected in the page
modules' "language mode" to prevent overlapping
of long page titles.

Note: Overlapping might still happen, depending on
the configured "titleLen" value, the current display
resolution and the number of languages being
displayed (when "All languages" is selected).

Resolves: #99729
Releases: main, 11.5
Change-Id: I02458e5b7b0d136303499a83fb6c2fcb5bbc0ef8
Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/77618


Tested-by: default avatarcore-ci <typo3@b13.com>
Reviewed-by: default avatarOliver Bartsch <bo@cedev.de>
Tested-by: default avatarOliver Bartsch <bo@cedev.de>
parent 6f78ef21
Branches
Tags
No related merge requests found
...@@ -198,10 +198,13 @@ class BackendLayoutRenderer ...@@ -198,10 +198,13 @@ class BackendLayoutRenderer
*/ */
public function drawContent(bool $renderUnused = true): string public function drawContent(bool $renderUnused = true): string
{ {
$backendUser = $this->getBackendUser();
$this->view->assign('hideRestrictedColumns', (bool)(BackendUtility::getPagesTSconfig($this->context->getPageId())['mod.']['web_layout.']['hideRestrictedCols'] ?? false)); $this->view->assign('hideRestrictedColumns', (bool)(BackendUtility::getPagesTSconfig($this->context->getPageId())['mod.']['web_layout.']['hideRestrictedCols'] ?? false));
$this->view->assign('newContentTitle', $this->getLanguageService()->getLL('newContentElement')); $this->view->assign('newContentTitle', $this->getLanguageService()->getLL('newContentElement'));
$this->view->assign('newContentTitleShort', $this->getLanguageService()->getLL('content')); $this->view->assign('newContentTitleShort', $this->getLanguageService()->getLL('content'));
$this->view->assign('allowEditContent', $this->getBackendUser()->check('tables_modify', 'tt_content')); $this->view->assign('allowEditContent', $backendUser->check('tables_modify', 'tt_content'));
$this->view->assign('maxTitleLength', $backendUser->uc['titleLen'] ?? 20);
if ($this->context->getDrawingConfiguration()->getLanguageMode()) { if ($this->context->getDrawingConfiguration()->getLanguageMode()) {
if ($this->context->getDrawingConfiguration()->getDefaultLanguageBinding()) { if ($this->context->getDrawingConfiguration()->getDefaultLanguageBinding()) {
......
...@@ -57,7 +57,7 @@ ...@@ -57,7 +57,7 @@
</f:if> </f:if>
</div> </div>
{languageColumn.pageIcon -> f:format.raw()} {languageColumn.pageIcon -> f:format.raw()}
{languageColumn.context.localizedPageTitle} {languageColumn.context.localizedPageTitle -> f:format.crop(maxCharacters: maxTitleLength)}
</td> </td>
</f:for> </f:for>
</tr> </tr>
......
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