From 25f0a7c6a8215142aca737a3fb897ba3046e30cc Mon Sep 17 00:00:00 2001 From: Michael Oehlhof <typo3@oehlhof.de> Date: Sun, 25 Oct 2015 23:39:34 +0100 Subject: [PATCH] [TASK] Show module action name + page title for info module in bookmark list Resolves: #71013 Releases: master Change-Id: I22f16df64871c9dc6783509b8eae45965b191c66 Reviewed-on: https://review.typo3.org/44275 Reviewed-by: Daniel Goerz <ervaude@gmail.com> Tested-by: Daniel Goerz <ervaude@gmail.com> Reviewed-by: Stefan Neufeind <typo3.neufeind@speedpartner.de> Tested-by: Stefan Neufeind <typo3.neufeind@speedpartner.de> --- .../Classes/Backend/ToolbarItems/ShortcutToolbarItem.php | 6 +++++- .../sysext/info/Classes/Controller/InfoModuleController.php | 1 + 2 files changed, 6 insertions(+), 1 deletion(-) diff --git a/typo3/sysext/backend/Classes/Backend/ToolbarItems/ShortcutToolbarItem.php b/typo3/sysext/backend/Classes/Backend/ToolbarItems/ShortcutToolbarItem.php index b1ff716b93ce..295b1efe44eb 100644 --- a/typo3/sysext/backend/Classes/Backend/ToolbarItems/ShortcutToolbarItem.php +++ b/typo3/sysext/backend/Classes/Backend/ToolbarItems/ShortcutToolbarItem.php @@ -589,7 +589,11 @@ class ShortcutToolbarItem implements ToolbarItemInterface if (!empty($page)) { // Set the name to the title of the page if ($shortcut['type'] === 'other') { - $shortcutName = $page['title']; + if (empty($shortcutName)) { + $shortcutName = $page['title']; + } else { + $shortcutName .= ' (' . $page['title'] . ')'; + } } else { $shortcutName = $shortcutNamePrepend . ' ' . $languageService->sL($GLOBALS['TCA'][$shortcut['table']]['ctrl']['title']) . diff --git a/typo3/sysext/info/Classes/Controller/InfoModuleController.php b/typo3/sysext/info/Classes/Controller/InfoModuleController.php index 07c82e83d770..e6d0a194b6c8 100644 --- a/typo3/sysext/info/Classes/Controller/InfoModuleController.php +++ b/typo3/sysext/info/Classes/Controller/InfoModuleController.php @@ -192,6 +192,7 @@ class InfoModuleController extends BaseScriptClass // Shortcut $shortCutButton = $buttonBar->makeShortcutButton() ->setModuleName($this->moduleName) + ->setDisplayName($this->MOD_MENU['function'][$this->MOD_SETTINGS['function']]) ->setGetVariables([ 'M', 'id', -- GitLab