mirror of
https://git.code.sf.net/p/seeddms/code
synced 2025-02-11 17:44:56 +00:00
add selection for folders in extension settings
This commit is contained in:
parent
327250eb31
commit
54aa90edda
|
@ -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;
|
||||
|
|
Loading…
Reference in New Issue
Block a user