Loading...
 
Skip to main content

History: GeoCMS_Instructions_22

Preview of version: 16

This "GeoCMS Maps 22" Profile provides a quick setup to use geolocation capabilities in many Tiki features, that can be shown in customisable maps, in Tiki versions starting from https://doc.tiki.org/Tiki22.

You are provided with a simple navigation module at the top bar to display partial content (by tiki feature), or all geolocated content together in a map. In addition, different map parameters are predefined to let you have quick different look and feels in them.


1.1. Tiki Features

These Tiki features are enabled, and included some demo content with geolocation details:
  • Wiki pages, Tracker items, Blog posts, articles and web services.

1.2. Further configuration steps

Rebuild unified search index


Add Web service 1 - with NO params

You need to setup your webservices here:

Add this information:
  • url: https://opendata-ajuntament.barcelona.cat/data/api/action/datastore_search?resource_id=8808bc24-e14c-45a5-9c24-5e67846f087a
  • Type: REST
  • Body of POST request:
    (leave this previous box empty)
And click at | Lookup | button.

Then, since there are no special parameters defined in this example, you can proceed to test it.
Click at | Test Input | button

This will produce some results a the "Response Information" box, in json format. And they should contain a section with 100 [records] (out of the several thousand records available in total (with no filtering based on web service params)

Then you can register this web service by means of:
  1. providing this name for it: bcnterrassesnoparams (since it's the predefined web service name expected by wiki pages created by this tiki profile), and
  2. click at the | Register Service | button

Once the web service is registered, then you can register a webservice template, providing this information in the form at the bottom of that page:
  • Name: bcnterrassesnoparamstemplate
  • Engine: Index
  • Output: Multi-index
  • (Text area field):
    Copy to clipboard
    { "records": [ { "EMPLACAMENT": { "type": "sortable", "field": "title" }, "NOM_BARRI": { "type": "plaintext", "field": "type" }, "LONGITUD": { "type": "numeric", "field": "lon" }, "LATITUD": { "type": "numeric", "field": "lat" } } ] }

And click at | Register Template | button.

Last, you will need to rebuild the unified search index again:

Add Web service 2 - WITH params

You need to setup your webservices here:

Add this information:
  • url: https://opendata-ajuntament.barcelona.cat/data/api/action/datastore_search?limit=%n_limit%&q=%wsq%&resource_id=8808bc24-e14c-45a5-9c24-5e67846f087a
  • Type: REST
  • Body of POST request:
    (leave this previous box empty)
And click at | Lookup | button.

Then test the parameters defined. You can test with:
  • n_limit: 8
  • wsq: {"NOM_DISTRICTE":"Sant Andreu"}
  • Bypass cache (X) (leave it checked)

And click at | Test Input | button

This will produce some results a the "Response Information" box, in json format. And they should contain a section with 8 [records] (out of the 380 records available passing this filter of district name (NOM_DISTRICTE)

Then you can register this web service by means of:
  1. providing this name for it: bcnterrassesparams (since it's the predefined web service name expected by wiki pages created by this tiki profile), and
  2. click at the | Register Service | button

Once the web service is registered, then you can register a webservice template, providing this information in the form at the bottom of that page:
  • Name: bcnterrassesparamstemplate
  • Engine: Index
  • Output: Multi-index
  • (Text area field):
    Copy to clipboard
    { "records": [ { "EMPLACAMENT": { "type": "sortable", "field": "title" }, "NOM_BARRI": { "type": "plaintext", "field": "type" }, "LONGITUD": { "type": "numeric", "field": "lon" }, "LATITUD": { "type": "numeric", "field": "lat" } } ] }

And click at | Register Template | button.

Last, you will need to rebuild the unified search index again:

Map enhancements (optional)

Optionally:
  • If you use Tiki version 20.1 or higher, you can use some extra background maps. Some of them require that you have an api key:
    • nextzen (vector tiles),
    • bing maps (which include satellite images, among other tilesets).

    More information in the Maps control panel

1.3. How to use it....

Browse geolocated content through the menu shown in the top bar module.

See further details on the parameters used in the documentation:

Last, but not least, remember that you can extend this profile!:

History

Information Version
Sun 26 of Jul, 2020 17:10 GMT-0000 Xavi (as xavidp - admin) added fluidgrid with screenshot 19
Sun 26 of Jul, 2020 17:06 GMT-0000 Xavi (as xavidp - admin) added screenshot within fluidgrid 18
Sun 26 of Jul, 2020 16:38 GMT-0000 Xavi (as xavidp - admin) updated web service template name and infos 17
Sun 26 of Jul, 2020 16:26 GMT-0000 Xavi (as xavidp - admin) styling 16
Sun 26 of Jul, 2020 16:21 GMT-0000 Xavi (as xavidp - admin) described 2 examples for webservices: one with params, one without 15
Sun 26 of Jul, 2020 16:13 GMT-0000 Xavi (as xavidp - admin) renamed web service template 14
Sun 26 of Jul, 2020 15:50 GMT-0000 Xavi (as xavidp - admin) renomved legal style numering of headings level 3 13
Sun 26 of Jul, 2020 15:47 GMT-0000 Xavi (as xavidp - admin) fixed the webservice template name 12
Sun 26 of Jul, 2020 15:42 GMT-0000 Xavi (as xavidp - admin) added link to rebuild unified search index 11
Sun 26 of Jul, 2020 15:39 GMT-0000 Xavi (as xavidp - admin) a new step 10
Sun 26 of Jul, 2020 15:34 GMT-0000 Xavi (as xavidp - admin) typo 9
Sun 26 of Jul, 2020 15:34 GMT-0000 Xavi (as xavidp - admin) minor 8
Sun 26 of Jul, 2020 15:30 GMT-0000 Xavi (as xavidp - admin) attempt to preserve % formating 7
Sun 26 of Jul, 2020 15:29 GMT-0000 Xavi (as xavidp - admin) url added 6
Sun 26 of Jul, 2020 15:27 GMT-0000 Xavi (as xavidp - admin) styling 5
Sun 26 of Jul, 2020 12:57 GMT-0000 Xavi (as xavidp - admin) added more information about the required steps for web services 4
Sun 26 of Jul, 2020 12:00 GMT-0000 Xavi (as xavidp - admin) bg colored text 3
Sun 26 of Jul, 2020 11:57 GMT-0000 Xavi (as xavidp - admin) work in progress, adding info on how to setup web services 2
Sun 26 of Jul, 2020 11:42 GMT-0000 Xavi (as xavidp - admin) clone of previous page for tiki 18 with minor changes of suffixes (this page and instructions page at profiles.t.o) 1