You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
This plugin adds editors for the input configs `tenantConfig.json` and `config.json` to the Admin GUI.
5
-
6
-
Uses Ace v1.4.14 code editor from https://ace.c9.io
1
+
NewsPopup Plugin
2
+
================
7
3
4
+
This plugin adds an editor for editing the contents of the `NewsPopup` displayed in QWC2.
8
5
9
6
Usage
10
7
=====
11
8
12
-
Enable this plugin by setting the following options in the `config` block of the `adminGui` section of the `tenantConfig.json`:
9
+
Make sure the `NewsPopup` plugin is enabled in your QWC2 `config.json`. Then, enable this plugin by setting the following options in the `config` block of the `adminGui` section of the `tenantConfig.json`:
10
+
11
+
```json
12
+
"plugins": ["newspopup"],
13
+
"news_file": "<path_to_news.html>",
14
+
"viewer_config_file": "<path_to_config.json>"
15
+
```
13
16
17
+
For example
14
18
```json
15
-
"plugins": ["config_editor"],
16
-
"input_config_path": "<path to the input configs>"
19
+
"news_file": "/qwc2/assets/news.html",
20
+
"viewer_config_file": "/qwc2/config.json"
17
21
```
18
22
19
-
The Admin GUI requires write access to the `input_config_path`.
23
+
The plugin requires write access to the files specified by `news_file` and `viewer_config_file` (i.e. the files need to be mounted read-write into the container).
24
+
25
+
The plugin will display an editor to modify the contents of `news_file` and update the `NewsPopup` plugin configuration in `viewer_config_file`.
0 commit comments