summaryrefslogtreecommitdiffstats
path: root/config.php.example
diff options
context:
space:
mode:
authorSimon Rettberg2016-07-07 11:13:33 +0200
committerSimon Rettberg2016-07-07 11:13:33 +0200
commit9b73975ceb68ec7d91d3a20ba618b2b192d2dc35 (patch)
treec9ed58d6e005c0638cffdbe48a8bedab090ec65d /config.php.example
parent[exams] Add button to zoom to selected exam period; autofill end day; show de... (diff)
downloadslx-admin-9b73975ceb68ec7d91d3a20ba618b2b192d2dc35.tar.gz
slx-admin-9b73975ceb68ec7d91d3a20ba618b2b192d2dc35.tar.xz
slx-admin-9b73975ceb68ec7d91d3a20ba618b2b192d2dc35.zip
Change menu overriding mechanism; simpler, now also supports changing the category of a module
Diffstat (limited to 'config.php.example')
-rw-r--r--config.php.example25
1 files changed, 18 insertions, 7 deletions
diff --git a/config.php.example b/config.php.example
index 6e760f1c..67a45d18 100644
--- a/config.php.example
+++ b/config.php.example
@@ -30,10 +30,21 @@ define('CONFIG_PROXY_CONF', '/opt/openslx/proxy/config');
define('CONFIG_DOZMOD_URL', 'http://127.0.0.1:9080');
define('CONFIG_DOZMOD_EXPIRE', 60);
-// Sort order for menu - optional, if missing, order will be alphabetically
-$MENU_CAT_SORT_ORDER = array('main.content' => 0, 'main.settings-client' => 1, 'main.settings-server' => 2, 'main.status' => 3, 'main.users' => 4);
-$MENU_SETTING_SORT_ORDER = array(
- 'news' => 0, 'sysconfig' => 1, 'baseconfig' => 2, 'locations' => 3, // main.content
- 'serversetup' => 0, 'internetaccess' => 1, 'vmstore' => 2, 'webinterface' => 3, 'backup' => 4, // main.settings
- 'systemstatus' => 0, 'eventlog' => 1, 'syslog' => 2, 'statistics' => 3 // main.status
-);
+// Sort order for menu
+// Optional - if missing, will be sorted by module id (internal name)
+// Here it is also possible to assign a module to a different category,
+// overriding the config.json entry
+$MENU_CAT_OVERRIDE = array(
+ 'main.content' => array(
+ 'news', 'locations', 'exams', 'dozmod', 'translation'
+ ),
+ 'main.settings-client' => array(
+ 'sysconfig', 'baseconfig', 'minilinux'
+ ),
+ 'main.settings-server' => array(
+ 'serversetup', 'vmstore', 'webinterface', 'backup'
+ ),
+ 'main.status' => array(
+ 'systemstatus', 'eventlog', 'syslog', 'statistics'
+ )
+); \ No newline at end of file