[GeoNode-users] alias and Freemarker template
Ariel Neri
ariel.neriw at gmail.com
Fri Dec 1 06:00:38 PST 2017
Hi Annalisa, Maybe you alredy saw this, but just in case... there´s also
the option to add descriptions of each atribute in the metadata info. These
descriptions are shown in the atribute tab of the layer description in the
portal.
[image: Imagen integrada 2]
2017-12-01 10:36 GMT-03:00 Annalisa Schiavon <annalisa.schiavon at gmail.com>:
> Thanks Ariel.
> But more than alias I had some descriptions, sometimes very long. I tried
> to shorten them, but in some cases it's difficult.
> I don't like use names too long as postgresql alias.
> Finally I choose to upload some documents (I already had PDF with long
> descriptions), to link them to the layers and also in content.ftl, so if
> someone do the getFeatures but doesn't understand attribute's names, can
> dowload a pdf with long descriptions.
> Maybe It's intricate, but I've no other ideas and time!
>
> Annalisa
>
> 2017-11-30 13:55 GMT+01:00 Ariel Neri <ariel.neriw at gmail.com>:
>
>> 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/20171201/486873d3/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/20171201/486873d3/attachment-0002.png>
-------------- next part --------------
A non-text attachment was scrubbed...
Name: image.png
Type: image/png
Size: 62616 bytes
Desc: not available
URL: <http://lists.osgeo.org/pipermail/geonode-users/attachments/20171201/486873d3/attachment-0003.png>
More information about the geonode-users
mailing list