<div dir="ltr"><div dir="ltr"><div>Hi Gianluca,</div><div>I'm very glad to see you in the list!</div><div><br></div><div>Your installation of geonode relies on Geoserver, the simpliest way is to use freemarker templates.</div><div>Read more at this link:<br></div><div></div><div><br></div><div><a href="https://docs.geoserver.org/stable/en/user/tutorials/GetFeatureInfo/index.html">https://docs.geoserver.org/stable/en/user/tutorials/GetFeatureInfo/index.html</a></div><div><a href="https://docs.geoserver.org/stable/en/user/tutorials/freemarker.html#tutorial-freemarkertemplate">https://docs.geoserver.org/stable/en/user/tutorials/freemarker.html#tutorial-freemarkertemplate</a></div><div></div><div><br></div><div>You need to prepare the YAML template file and put it into the <br></div><div><geoserver_data_dir>/workspaces/geonode/<layer_name> <br></div><div> folder,<br></div><div>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:</div><div><br></div><div><pre><span class="gmail-o"><</span><span class="gmail-n">img</span> <span class="gmail-n">src</span><span class="gmail-o">=</span><span class="gmail-s2">"http://<your_server_url>/$</span><span class="gmail-si">{feature.PHOTO.value}</span><span class="gmail-s2">"</span><span class="gmail-o">/></span></pre></div><div></div><div>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?).</div><div><br></div><div>Feel free to contact me even directly if you need specific help on that installation.</div><div><br></div><div>Have a nice day</div><div><br></div><div>Amedeo<br></div><div><br></div><div>[0] <a href="https://github.com/geosolutions-it/mapstore/wiki/WMS-Get-Feature-Info-Menu#customize-grid-format-to-display-custom-fields-hide-and-display-them">https://github.com/geosolutions-it/mapstore/wiki/WMS-Get-Feature-Info-Menu#customize-grid-format-to-display-custom-fields-hide-and-display-them</a></div></div><br><div class="gmail_quote"><div dir="ltr" class="gmail_attr">Il giorno mar 19 nov 2019 alle ore 09:26 Gianluca Zanatta - ABACO S.p.A. <<a href="mailto:gianluca.zanatta@abacospa.it">gianluca.zanatta@abacospa.it</a>> ha scritto:<br></div><blockquote class="gmail_quote" style="margin:0px 0px 0px 0.8ex;border-left:1px solid rgb(204,204,204);padding-left:1ex"><div lang="IT"><div class="gmail-m_8556908461680939818WordSection1"><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black" lang="EN-US">Dear all,<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black" lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black" lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black" lang="EN-US">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.<u></u><u></u></span></p><p class="MsoNormal"><span style="font-size:10pt;font-family:"Courier New";color:black" lang="EN-US">How is possible to display the photo/image in the layer info panel?<u></u><u></u></span></p><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><pre><span style="color:black" lang="EN-US">Thank you for helping.<u></u><u></u></span></pre><pre><span style="color:black" lang="EN-US">Cheers,<u></u><u></u></span></pre><pre><span style="color:black" lang="EN-US">Gianluca<u></u><u></u></span></pre><p class="MsoNormal"><span lang="EN-US"><u></u> <u></u></span></p><p class="MsoNormal"><span><u></u> <u></u></span></p><p class="MsoNormal"><u></u> <u></u></p></div></div>_______________________________________________<br>
geonode-users mailing list<br>
<a href="mailto:geonode-users@lists.osgeo.org" target="_blank">geonode-users@lists.osgeo.org</a><br>
<a href="https://lists.osgeo.org/mailman/listinfo/geonode-users" rel="noreferrer" target="_blank">https://lists.osgeo.org/mailman/listinfo/geonode-users</a><br>
</blockquote></div></div>