From 880d8d32c7c8f7cf198a17305ab0cefadb7d385d Mon Sep 17 00:00:00 2001 From: Georg Ringer <georg.ringer@gmail.com> Date: Fri, 7 Jun 2024 11:23:14 +0200 Subject: [PATCH] [TASK] Add page id to some bookmark titles The bookmark title within the following modules is enriched by the page id: - Info module Resolves: #103909 Releases: main, 12.4 Change-Id: I715a55dea86ac08f1a3dbeeff01e8d1b03712464 Reviewed-on: https://review.typo3.org/c/Packages/TYPO3.CMS/+/84644 Reviewed-by: Georg Ringer <georg.ringer@gmail.com> Tested-by: core-ci <typo3@b13.com> Tested-by: Georg Ringer <georg.ringer@gmail.com> --- .../sysext/info/Classes/Controller/InfoModuleController.php | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/typo3/sysext/info/Classes/Controller/InfoModuleController.php b/typo3/sysext/info/Classes/Controller/InfoModuleController.php index 3a8e420c56c4..f171989eda73 100644 --- a/typo3/sysext/info/Classes/Controller/InfoModuleController.php +++ b/typo3/sysext/info/Classes/Controller/InfoModuleController.php @@ -157,7 +157,11 @@ class InfoModuleController // Shortcut $shortcutButton = $buttonBar->makeShortcutButton() ->setRouteIdentifier($this->currentModule->getIdentifier()) - ->setDisplayName($this->getLanguageService()->sL($this->currentModule->getTitle())) + ->setDisplayName(sprintf( + '%s [%d]', + $this->getLanguageService()->sL($this->currentModule->getTitle()), + $this->id + )) ->setArguments(['id' => $this->id]); $buttonBar->addButton($shortcutButton, ButtonBar::BUTTON_POSITION_RIGHT); } -- GitLab