Hi,

I am trying hard to do a simple task. I just want this ftl file (below) to NOT 
display the following fields...."BEZ", "Koord_X", or "Koord_Y"


<table class="featureInfo">
  <caption class="featureInfo">${type.name}</caption>
  <tr>
<#list type.attributes as attribute>
  <#if !attribute.isGeometry >
    <th >${attribute.name}</th>
  </#if>
</#list>
  </tr>

<#assign odd = false>
<#list features as feature>
  <#if odd>
    <tr class="odd">
  <#else>
    <tr>
  </#if>
  <#assign odd = !odd>

  <#list feature.attributes as attribute>
    <#if !attribute.isGeometry >
      <td>${attribute.value}</td>
    </#if>
  </#list>
  </tr>
</#list>
</table>
<br/>




I though it would be easiest to just do this.....<caption 
class="featureInfo">${type.name!="KOORD_Y" || type.name!="KOORD_X"}</caption>  
but the syntax is wrong

I can do something like this...

<#list features as feature>
<#list feature.attributes as attribute>
 <th>
<#if attribute.name=="BEZ">BEZ: 
${attribute.value}
</#if>
 </th><br>
 <th>
<#if attribute.name=="Standort">Standort:
${attribute.value}
</#if>
 </th><br>
 <th>



but then I lose the formatted odd/even rows of data which make is nice and 
readable.


Can anyone help me to just prevent the 2 fields being put into the infobox.

Yours,

Robert Buckley




------------------------------------------------------------------------------
Beautiful is writing same markup. Internet Explorer 9 supports
standards for HTML5, CSS3, SVG 1.1,  ECMAScript5, and DOM L2 & L3.
Spend less time writing and  rewriting code and more time creating great
experiences on the web. Be a part of the beta today.
http://p.sf.net/sfu/beautyoftheweb
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to