From 85638ebadb385bb16ad43d334ac6891ac127bf33 Mon Sep 17 00:00:00 2001 From: Uwe Steinmann Date: Tue, 13 Jan 2026 17:06:28 +0100 Subject: [PATCH] add config var to enable document/folder actions in dropdown menu --- inc/inc.ClassSettings.php | 4 ++++ op/op.Settings.php | 1 + views/bootstrap/class.Settings.php | 1 + 3 files changed, 6 insertions(+) diff --git a/inc/inc.ClassSettings.php b/inc/inc.ClassSettings.php index f0c25893d..ed25a320b 100644 --- a/inc/inc.ClassSettings.php +++ b/inc/inc.ClassSettings.php @@ -343,6 +343,8 @@ class Settings { /* {{{ */ var $_incItemsPerPage = 0; // parse comments of folders and documents as markdown var $_markdownComments = false; + // show dropdown menu for actions on folders/documents + var $_actiondropdown = false; // Show form to submit missing translations at end of page var $_showMissingTranslations = false; // Extra Path to additional software, will be added to include path @@ -562,6 +564,7 @@ class Settings { /* {{{ */ if(isset($tab["incItemsPerPage"])) $this->_incItemsPerPage = intval($tab["incItemsPerPage"]); $this->_markdownComments = Settings::boolVal($tab["markdownComments"]); + $this->_actiondropdown = Settings::boolVal($tab["actiondropdown"]); // XML Path: /configuration/site/edition $node = $xml->xpath('/configuration/site/edition'); @@ -984,6 +987,7 @@ class Settings { /* {{{ */ $this->setXMLAttributValue($node, "maxItemsPerPage", $this->_maxItemsPerPage); $this->setXMLAttributValue($node, "incItemsPerPage", $this->_incItemsPerPage); $this->setXMLAttributValue($node, "markdownComments", $this->_markdownComments); + $this->setXMLAttributValue($node, "actiondropdown", $this->_actiondropdown); // XML Path: /configuration/site/edition $node = $this->getXMLNode($xml, '/configuration/site', 'edition'); diff --git a/op/op.Settings.php b/op/op.Settings.php index a457f9e5b..ee42fc8a1 100644 --- a/op/op.Settings.php +++ b/op/op.Settings.php @@ -110,6 +110,7 @@ if ($action == "saveSettings") setIntValue('maxItemsPerPage'); setIntValue('incItemsPerPage'); setBoolValue('markdownComments'); + setBoolValue('actiondropdown'); // SETTINGS - SITE - EDITION setBoolValue('strictFormCheck'); diff --git a/views/bootstrap/class.Settings.php b/views/bootstrap/class.Settings.php index 36e5cc44b..64b6ddd43 100644 --- a/views/bootstrap/class.Settings.php +++ b/views/bootstrap/class.Settings.php @@ -651,6 +651,7 @@ $this->showStartPaneContent('site', (!$currenttab || $currenttab == 'site')); showConfigText('settings_maxItemsPerPage', 'maxItemsPerPage'); ?> showConfigText('settings_incItemsPerPage', 'incItemsPerPage'); ?> showConfigCheckbox('settings_markdownComments', 'markdownComments'); ?> +showConfigCheckbox('settings_actiondropdown', 'actiondropdown'); ?>