Customise the application¶
There is two generic ways to customise the application.
The functionnalities and the UI metadata.
The functionalities will be attached to the role and the theme,
and the UI metadata will be attached to all the elements of the theme.
They should be configured in the vars file, in the admin_interface /
available_functionnalities or respectively available_metadata.
It is a list of object who have a name and a type.
The type can be:
stringlista list of stringsbooleanintegerfloatjsondatetimedatetimesee the python-dateutil documentationurlsee below
Check CONST_vars.yaml for examples of usage.
In order to inherit the default values from CONST_vars.yaml make sure the update_paths section contains
the item admin_interface.available_functionnalities or respectively admin_interface.available_metadata.
URL¶
In the admin interface we can use in all the URLs the following special schema:
static: to use a static route,static:///icon.pngwill get the URL of thestatic-ngeostatic route of the project.static://static-cgxp/icon.pngwill get the URL of thestatic-cgxpstatic route of the project.static://prj:img/icon.pngwill get the URL of theimgstatic route ofprj.
config: to get the server name from the URL, with the config from thevarsfile:servers: my_server: http://example.com/test
config://my_server/icon.pngwill be transformed into the URLhttp://example.com/test/icon.png.