[GeoNode-users] alias and Freemarker template
Ariel Neri
ariel.neriw at gmail.com
Thu Nov 30 04:55:31 PST 2017
Hi Annalisa. I did it creating "views" in Postgresql. Since our original
layers are huge, I load the original layer to "geonode_data" DB and created
diferent views with reduced atributes and alias that anyone can understand.
HereĀ“s an example:
[image: Imagen integrada 1]
Then just publish the view in geoserver
Hope it helps.
Ariel
2017-11-30 9:27 GMT-03:00 Annalisa Schiavon <annalisa.schiavon at gmail.com>:
> Hi all,
> I'm using freemarker template, getting names and values of features in
> this way (for example):
> <#list features as feature>
> <li>
> <ul>
> <#list feature.attributes as attribute>
> <#if !attribute.isGeometry>
> <li><b>${attribute.name}</b>: ${attribute.value}</li>
> </#if>
> </#list>
> </ul>
> </li>
> <hr>
> </#list>
>
> There is a way to use "alias" attribute names?
> If I define some alias or descriptions for attributes in geonode metadata
> layers, they can be used?
> There is a way to define alias in geoserver or in Postgresql (my layers
> are all in DB Postgresql) that can be recalled in content.ftl files?
>
> Tipically I set some text directly in content.ftl files, but now I've
> layers with many fields and it would be better enter alias for attributes
> once, maybe in the attribute tabs of the layer in Geonode!
>
> Thanks
> Annalisa
>
>
> _______________________________________________
> geonode-users mailing list
> geonode-users at lists.osgeo.org
> https://lists.osgeo.org/mailman/listinfo/geonode-users
>
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20171130/0e13bba0/attachment-0001.html>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 43207 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20171130/0e13bba0/attachment-0001.png>
More information about the geonode-users
mailing list