Skip to content

Commit

Permalink
Update override-local-config.md
Browse files Browse the repository at this point in the history
  • Loading branch information
allyoucanmap authored Feb 11, 2022
1 parent 64f4b26 commit 957d6ba
Showing 1 changed file with 10 additions and 1 deletion.
11 changes: 10 additions & 1 deletion docs/customizations/override-local-config.md
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,7 @@ geonode-project/

- add the following block extension in the `_geonode_config.html` template

{% raw %}
```django
<!-- _geonode_config.html file in the my_geonode project -->
{% extends 'geonode-mapstore-client/_geonode_config.html' %}
Expand All @@ -34,6 +35,7 @@ geonode-project/
</script>
{% endblock %}
```
{% endraw %}

Now the `window.__GEONODE_CONFIG__.overrideLocalConfig` function can be used to override the localConfig json file.

Expand All @@ -43,6 +45,7 @@ Now the `window.__GEONODE_CONFIG__.overrideLocalConfig` function can be used to

Note: not all configuration can be applied to the geonode-mapstore-client because the environment is different from the MapStore product

{% raw %}
```django
<!-- _geonode_config.html file in the my_geonode project -->
{% extends 'geonode-mapstore-client/_geonode_config.html' %}
Expand Down Expand Up @@ -80,9 +83,11 @@ Note: not all configuration can be applied to the geonode-mapstore-client becaus
</script>
{% endblock %}
```
{% endraw %}

- Restore a plugin in a page

{% raw %}
```django
<!-- _geonode_config.html file in the my_geonode project -->
{% extends 'geonode-mapstore-client/_geonode_config.html' %}
Expand All @@ -103,10 +108,11 @@ Note: not all configuration can be applied to the geonode-mapstore-client becaus
</script>
{% endblock %}
```
{% endraw %}

- Remove a plugin from a page


{% raw %}
```django
{% extends 'geonode-mapstore-client/_geonode_config.html' %}
{% block override_local_config %}
Expand All @@ -131,9 +137,11 @@ Note: not all configuration can be applied to the geonode-mapstore-client becaus
</script>
{% endblock %}
```
{% endraw %}

- Update plugin configuration

{% raw %}
```html
{% extends 'geonode-mapstore-client/_geonode_config.html' %}
{% block override_local_config %}
Expand Down Expand Up @@ -209,3 +217,4 @@ Note: not all configuration can be applied to the geonode-mapstore-client becaus
</script>
{% endblock %}
```
{% endraw %}

0 comments on commit 957d6ba

Please sign in to comment.