Option for setting default parameters
This commit is contained in:
committed by
Adrian Lang
parent
9544d867a4
commit
0809416694
@@ -6,3 +6,4 @@
|
|||||||
$conf['allow_in_comments'] = 0;
|
$conf['allow_in_comments'] = 0;
|
||||||
$conf['allowed_absolute_paths'] = DOKU_INC;
|
$conf['allowed_absolute_paths'] = DOKU_INC;
|
||||||
$conf['web_paths'] = DOKU_URL;
|
$conf['web_paths'] = DOKU_URL;
|
||||||
|
$conf['defaults'] = '';
|
||||||
|
|||||||
@@ -9,3 +9,5 @@
|
|||||||
$meta['allow_in_comments'] = array('onoff');
|
$meta['allow_in_comments'] = array('onoff');
|
||||||
$meta['allowed_absolute_paths'] = array('');
|
$meta['allowed_absolute_paths'] = array('');
|
||||||
$meta['web_paths'] = array('');
|
$meta['web_paths'] = array('');
|
||||||
|
$meta['defaults'] = array('string');
|
||||||
|
|
||||||
|
|||||||
@@ -3,3 +3,4 @@
|
|||||||
$lang['allow_in_comments'] = 'Whether to allow the filelist syntax to be used in comments.';
|
$lang['allow_in_comments'] = 'Whether to allow the filelist syntax to be used in comments.';
|
||||||
$lang['allowed_absolute_paths'] = 'Comma-separated list of absolute paths allowed for globbing.';
|
$lang['allowed_absolute_paths'] = 'Comma-separated list of absolute paths allowed for globbing.';
|
||||||
$lang['web_paths'] = 'Comma-separated list of urls by which to reach the corresponding absolute path from the previous list. MUST have the exact same number of entries as allowed_absolute_paths.';
|
$lang['web_paths'] = 'Comma-separated list of urls by which to reach the corresponding absolute path from the previous list. MUST have the exact same number of entries as allowed_absolute_paths.';
|
||||||
|
$lang['defaults'] = 'Default options. Use the same syntax as in inline configuration';
|
||||||
|
|||||||
@@ -77,6 +77,9 @@ class syntax_plugin_filelist extends DokuWiki_Syntax_Plugin {
|
|||||||
}
|
}
|
||||||
}
|
}
|
||||||
|
|
||||||
|
// load default config options
|
||||||
|
$flags = $this->getConf('defaults').'&'.$flags;
|
||||||
|
|
||||||
$flags = split('&', $flags);
|
$flags = split('&', $flags);
|
||||||
$params = array(
|
$params = array(
|
||||||
'sort' => 'name',
|
'sort' => 'name',
|
||||||
|
|||||||
Reference in New Issue
Block a user