mirror of
https://git.code.sf.net/p/seeddms/code
synced 2026-02-02 06:31:56 +00:00
add config var to enable document/folder actions in dropdown menu
This commit is contained in:
parent
0e127799e9
commit
85638ebadb
|
|
@ -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');
|
||||
|
|
|
|||
|
|
@ -110,6 +110,7 @@ if ($action == "saveSettings")
|
|||
setIntValue('maxItemsPerPage');
|
||||
setIntValue('incItemsPerPage');
|
||||
setBoolValue('markdownComments');
|
||||
setBoolValue('actiondropdown');
|
||||
|
||||
// SETTINGS - SITE - EDITION
|
||||
setBoolValue('strictFormCheck');
|
||||
|
|
|
|||
|
|
@ -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
|
||||
|
|
|
|||
Loading…
Reference in New Issue
Block a user