Hello,
Apologies for asking the same question twice, I was unsure if my question below had reached the mailing list – if anyone could provide me with any information regarding the query below, it would be really appreciated
Many thanks,
Ryan
From: Ryan Moody [mailto:ryan.moody@anonymised.com]
Sent: 08 November 2013 16:34
To: geoserver-users@lists.sourceforge.net
Cc: Francoise Kingman; Neil Kirk
Subject: [Geoserver-users] App-Schema Custom GetFeatureInfo HTML
Hello,
Having successfully got my App-Schema based WMS to return a PNG image, I now wish to override the GetFeatureInfo request to output custom HTML. I’ve defined the following content.ftl template:
=== Begin content.ftl
<#list features as feature>
- ${feature.fid}
- ${attribute.name} = ${attribute.value}
<#list feature.attributes as attribute>
<#if attribute.name != “the_geom”>
</#if>
</#list>
</#list>
=== End content.ftl
This template gives me the bullet point list I expect to see for the tutorial (non App-Schema) data layers when I invoke a GetFeatureInfo request by clicking on the OpenLayers map, however, when I use the same content.ftl for my App-Schema data layer, the default HTML (a table of attributes instead of my custom bulleted list) is displayed.
Does App-Schema support the use of a custom content.ftl template? If so, what modifications do I need to make to make to the template above in order to display the bulleted list?
Best Regards,
Ryan