Dear Team,

I am trying to customize the ftl file to only show the first feature value
on click. Here is what I have done. I was able to limit the output to one
class but not the features.

<#list features as feature>

  <#list feature.attributes as attribute>
    <#if !attribute.isGeometry>

     <li class="featurelist"
style="display:none;">${feature.overall_vu.value}</li>

     <#break>

    </#if>
  </#list>
</#list>

The reason I did display none is to then show the first list item using
jquery. But a more elegant solution will be to limit it by index, something
like this  ${feature.overall_vu.value[0]}
but doesn't work.Is there any method to achieve it?

Thanks!
------------------------------------------------------------------------------
Don't Limit Your Business. Reach for the Cloud.
GigeNET's Cloud Solutions provide you with the tools and support that
you need to offload your IT needs and focus on growing your business.
Configured For All Businesses. Start Your Cloud Today.
https://www.gigenetcloud.com/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to