Skip to content

Commit

Permalink
Add some informations about the Dynamic.js view
Browse files Browse the repository at this point in the history
  • Loading branch information
sbrunner committed Aug 27, 2018
1 parent 1b0f2f4 commit 5afc00f
Show file tree
Hide file tree
Showing 2 changed files with 20 additions and 0 deletions.
1 change: 1 addition & 0 deletions doc/developer/webservices.rst
Original file line number Diff line number Diff line change
Expand Up @@ -339,6 +339,7 @@ Success JSON result
"success": "true"
}
.. _developer_webservices_fts:

Full-Text Search
================
Expand Down
19 changes: 19 additions & 0 deletions doc/integrator/ngeo.rst
Original file line number Diff line number Diff line change
Expand Up @@ -108,3 +108,22 @@ The map configuration will be here:
If you previously had a CGXP application and want to keep your permalinks
compatible, the resolutions should be the same as in the previous
application.

Dynamic.js view
---------------

To configure the ngeo constants with dynamic or configurable values we have the dynamic view.

This view is configurable in the vars files in the section ``interfaces_config``.
The sub section is the interface name, and after we have:

* ``redirect_interface``: interface to be redirected to if an unexpected device type is used (mobile/desktop).
* ``do_redirect``: directly do the redirect.
* ``constants``: Directly define an ``angular`` constant in the vars file.
* ``routes``: key: constant name, value: name of the route witch one we want to have the URL.
* ``static``: key: constant name, value: name of the static view that we want to have the URL.
* ``fulltextsearch_params``: Additional parameters to the full text search view, see
:ref:`developer_webservices_fts` for more information.
* ``wfs_permalink``: Additional values for the ``ngeoWfsPermalinkOptions`` constant, see:
`ngeox.WfsPermalinkOptions <https://github.com/camptocamp/ngeo/blob/2.3/options/ngeox.js#L837>_`
for more information.

0 comments on commit 5afc00f

Please sign in to comment.