add selection for folders in extension settings

This commit is contained in:
Uwe Steinmann 2018-08-27 08:22:39 +02:00
parent 327250eb31
commit 54aa90edda

View File

@ -205,6 +205,23 @@ class SeedDMS_View_Settings extends SeedDMS_Bootstrap_Style {
});
});
<?php
foreach($GLOBALS['EXT_CONF'] as $extname=>$extconf) {
if($extconf['config']) {
foreach($extconf['config'] as $confkey=>$conf) {
switch($conf['type']) {
case 'select':
if(!empty($conf['internal'])) {
switch($conf['internal']) {
case "folders":
$this->printFolderChooserJs("form".$extname.$confkey);
break;
}
}
break;
}
}
}
}
} /* }}} */
function show() { /* {{{ */
@ -538,6 +555,9 @@ $this->showStartPaneContent('site', (!$currenttab || $currenttab == 'site'));
echo "</select>";
}
break;
case "folders":
$this->formField(null, $this->getFolderChooserHtml("form".$extname.$confkey, M_READ, -1, $selections ? $dms->getFolder($selections[0]) : 0, 'extensions['.$extname."][".$confkey."]"));
break;
}
}
break;