From 6e28f2a74e11711fa1e9a91b4f66bf60ea121688 Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?Jan=20B=C3=B6hmer?= Date: Sun, 6 Jul 2025 19:09:10 +0200 Subject: [PATCH] Moved rootNodeRedirectsToNewEntity option to new settings system --- src/Settings/BehaviorSettings/SidebarSettings.php | 4 ++++ translations/messages.en.xlf | 6 ++++++ 2 files changed, 10 insertions(+) diff --git a/src/Settings/BehaviorSettings/SidebarSettings.php b/src/Settings/BehaviorSettings/SidebarSettings.php index e0e9e31f..1266fa47 100644 --- a/src/Settings/BehaviorSettings/SidebarSettings.php +++ b/src/Settings/BehaviorSettings/SidebarSettings.php @@ -68,5 +68,9 @@ class SidebarSettings #[SettingsParameter(label: new TM("settings.behavior.sidebar.rootNodeExpanded"))] public bool $rootNodeExpanded = true; + /** + * @var bool Whether the root node should redirect to a new entity creation page when clicked. + */ + #[SettingsParameter(label: new TM("settings.behavior.sidebar.rootNodeRedirectsToNewEntity"))] public bool $rootNodeRedirectsToNewEntity = false; } \ No newline at end of file diff --git a/translations/messages.en.xlf b/translations/messages.en.xlf index 3ca784cd..76bf65fb 100644 --- a/translations/messages.en.xlf +++ b/translations/messages.en.xlf @@ -12922,5 +12922,11 @@ Please note, that you can not impersonate a disabled user. If you try you will g Pollin.de offers no official API, so this info provider webscrapes the website to extract info. It could break at any time, use it at your own risk. + + + settings.behavior.sidebar.rootNodeRedirectsToNewEntity + Root nodes redirect to new entity pages + +