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>

<ul>

<li>${feature.fid}</li>

<ul>

<#list feature.attributes as attribute>

<#if attribute.name != "the_geom">

<li><b>${attribute.name}</b> = ${attribute.value}</li>

</#if>

</#list>

</ul>

</ul>

</#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

------------------------------------------------------------------------------
November Webinars for C, C++, Fortran Developers
Accelerate application performance with scalable programming models. Explore
techniques for threading, error checking, porting, and tuning. Get the most 
from the latest Intel processors and coprocessors. See abstracts and register
http://pubads.g.doubleclick.net/gampad/clk?id=60136231&iu=/4140/ostg.clktrk
_______________________________________________
Geoserver-users mailing list
[email protected]
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to