add config var to enable document/folder actions in dropdown menu

This commit is contained in:
Uwe Steinmann 2026-01-13 17:06:28 +01:00
parent 0e127799e9
commit 85638ebadb
3 changed files with 6 additions and 0 deletions

View File

@ -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');

View File

@ -110,6 +110,7 @@ if ($action == "saveSettings")
setIntValue('maxItemsPerPage');
setIntValue('incItemsPerPage');
setBoolValue('markdownComments');
setBoolValue('actiondropdown');
// SETTINGS - SITE - EDITION
setBoolValue('strictFormCheck');

View File

@ -651,6 +651,7 @@ $this->showStartPaneContent('site', (!$currenttab || $currenttab == 'site'));
<?php $this->showConfigText('settings_maxItemsPerPage', 'maxItemsPerPage'); ?>
<?php $this->showConfigText('settings_incItemsPerPage', 'incItemsPerPage'); ?>
<?php $this->showConfigCheckbox('settings_markdownComments', 'markdownComments'); ?>
<?php $this->showConfigCheckbox('settings_actiondropdown', 'actiondropdown'); ?>
<!--
-- SETTINGS - SITE - EDITION