diff --git a/technical-documentation.md b/technical-documentation.md index 02b331b..660498c 100644 --- a/technical-documentation.md +++ b/technical-documentation.md @@ -32,4 +32,19 @@ There are certain dependencies for konova: All details regarding the API can be found [here](https://git.naturschutz.rlp.de/SGD-Nord/konova/wiki/api_de). - +## News and ServerMessages +News can be added to the landing page of every user by adding new entries for the model `ServerMessage` on the admin backend. +Each entries behaviour can be configured using the attributes: +* is_active + * Toggles the visibility of a message. If false, the message will not be displayed on any landing page. +* publish_on + * The message will appear on landing pages once this timestamp has been reached. +* unpublish_on (optional) + * The message will disappear from landing pages once this timestamp has been reached + * If no value is provided, the message will stay forever +* importance + * Select a level of importance from the given options + * Depending on the selected level, other styles will be used to highlight the message entry on the landing pages + * standard --> regular, no specific background color + * info --> informative, light blue background color + * warning --> warning, light red background color \ No newline at end of file