[GeoNode-users] R: Layer Feature info

Gianluca Zanatta - ABACO S.p.A. gianluca.zanatta at abacospa.it
Tue Nov 19 23:34:32 PST 2019

We are using Geonode version 2.10.1, the .ftl content has been correctly created; the preview of the layer in Geoserver displays the relative photo contained in the attributes, which does not happen in the Geonode / MapStore view.

Hence our doubt in the direct visualization of the photo attribute. (Photo viewable only as external link from path html contained in the attributes).


Anyone can help us?


Thank you for helping.






Da: Amedeo Fadini <amefad at gmail.com> 
Inviato: martedì 19 novembre 2019 10:19
A: Gianluca Zanatta - ABACO S.p.A. <gianluca.zanatta at abacospa.it>
Cc: geonode-users <geonode-users at lists.osgeo.org>
Oggetto: Re: [GeoNode-users] Layer Feature info


Hi Gianluca,

I'm very glad to see you in the list!


Your installation of geonode relies on Geoserver, the simpliest way is to use freemarker templates.

Read more at this link:





You need to prepare the YAML template file and put it into the 



I guess you can find already existing templates I made searching for *.ftl. files. By the way  to display the content of  field named "PHOTO" the code is straightforward:


<img src="http:// <http://%3cyour_server_url%3e/$%7bfeature.PHOTO.value%7d> <your_server_url>/${feature.PHOTO.value}"/>

Of course you can also manage this  parsing the HTML or text response on the client side,  if you are planning to upgrade to Geonode 2.10 there's some mapstore  options like outputgrid config [0] (not sure if are natively included in the geonode edition... could anyone confirm?).


Feel free to contact me even directly if you need specific help on that installation.


Have a nice day




[0] https://github.com/geosolutions-it/mapstore/wiki/WMS-Get-Feature-Info-Menu#customize-grid-format-to-display-custom-fields-hide-and-display-them


Il giorno mar 19 nov 2019 alle ore 09:26 Gianluca Zanatta - ABACO S.p.A. <gianluca.zanatta at abacospa.it <mailto:gianluca.zanatta at abacospa.it> > ha scritto:

Dear all,



We are having an issue with the layer feature info: in the layer attribute table we have a “photo” field and we need to display it in the layer feature info panel when we query the Objects on map.

How is possible to display the photo/image in the layer info panel?


Thank you for helping.




geonode-users mailing list
geonode-users at lists.osgeo.org <mailto:geonode-users at lists.osgeo.org> 

-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20191120/c436f322/attachment.html>

More information about the geonode-users mailing list