Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. Join them; it only takes a minute:

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

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
up vote 0 down vote accepted

From the GeoServer Freemarker tutorial:

<#list features as feature>
  <li><b>Type: ${}</b> (id: <em>${feature.fid}</em>):
  <#list feature.attributes as attribute>
    <#if !attribute.isGeometry>
      <li>${}: ${attribute.value}</li>
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
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

Your Answer


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.