Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Hello everyone I have have a view in geoserver from postgres and I like the default free marker template output in Layer preview but I would like to change it to where to column names Field name and Field Value. Since the default content.ftl is iterating through and outputting all the content horizontally is there a easy way to make the table print vertically?

share|improve this question
add comment

1 Answer

up vote 0 down vote accepted

From the GeoServer Freemarker tutorial:

<ul>
<#list features as feature>
  <li><b>Type: ${type.name}</b> (id: <em>${feature.fid}</em>):
  <ul>
  <#list feature.attributes as attribute>
    <#if !attribute.isGeometry>
      <li>${attribute.name}: ${attribute.value}</li>
    </#if>
  </#list>
  </ul>
  </li>
</#list>
</ul>
share|improve this answer
    
Yes I read through that tutorial and that format is what I am after but I was more interested in keeping the information in table format rather then a list. –  CrazySpatial Feb 21 '13 at 12:24
1  
Never Mind I figured it out.I took the list and placed it in html table tags....I think my brain was fried by the end of the day and just could not think Thank you for your Help –  CrazySpatial Feb 21 '13 at 13:46
add comment

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.