GUI Category
From MapbenderWiki
User:Astrid Emde (Module maintainer)
Contents |
Description
planned to integrate this functionality to Mapbender 2.6 (http://trac.osgeo.org/mapbender/ticket/344)
english
It is possible to define categories in the table gui_categories. Afterwards you can assign a gui to one or more categories.
When you start Mapbender it will display the gui-list ordered by categories. Every category will represented in a section containing the guis of this category.
You can add your own style to the gui-list by changing the css-parameters of the file login.css.
deutsch
Es ist möglich GUI-Kategorien zu erstellen. Dies erfolgt in der Tabelle gui_category. Anschließend kann einer GUI eine oder mehrere Kategorien zugeorndet werden.
Die Übersicht der zur Verfügung stehenden GUIs ("zebra" - erscheint nach der Anmeldung) wird nun alphabetsch nach Kategoriern sortiert ausgegeben. Unter jeder Kategorie werden die dazu gehörenden Guis aufgelistet.
Über die Datei login.css kann der Style der Startseite individuell angepaßt werden.
Element vars
- none
Files
For this module the following files are required / Für dieses Modul werden die folgenden Dateien benötigt:
- http://trac.osgeo.org/mapbender/browser/branches/astroidex_25/http/css/login.css?format=raw
- http://trac.osgeo.org/mapbender/browser/branches/astroidex_25/http/php/mb_listGUIs.php?format=raw
- http://trac.osgeo.org/mapbender/browser/branches/astroidex_25/http/php/mod_createCategory.php
- http://trac.osgeo.org/mapbender/browser/branches/astroidex_25/http/php/mod_category_filteredGUI.php
- http://trac.osgeo.org/mapbender/browser/branches/astroidex_25/http/classes/class_administration.php
- you get different styles for this module
- simple style (default): http://trac.osgeo.org/mapbender/browser/branches/astroidex_25/http/css/login.css?rev=3815
- alternative style (a little bit smaller): http://trac.osgeo.org/mapbender/browser/branches/astroidex_25/http/css/login.css?rev=3814
- simple style (gui list style in Horizontal tabs): http://trac.osgeo.org/mapbender/browser/branches/astroidex_25/http/css/login.css?rev=3813
- simple style (gui list style in Vertical tabs): http://trac.osgeo.org/mapbender/browser/branches/astroidex_25/http/css/login.css?rev=3812
SQL
Create the following two tables to handle the gui-categories and assignment gui to category
Use this sql statement to insert this module in the corresponding gui / Mit diesem SQL kann das Modul in die entsprechende GUI eingefügen werden:
