Gregor at HostGIS ha scritto: > Hey all. How can I configure the WMS service to use a different template > for GetFeatureInfo requests, based on the layer (typename) being requested? > > Both of these refer to content.ftl, and this does work. But what if I > want different output based on the typename? For example, a state won't > have the same output as a tree. > > http://geoserver.org/display/GEOSDOC/GetFeatureInfo+templates > > http://augusttown.blogspot.com/2010/01/customize-wms-getfeatureinfo-response.html > > Am I really forced to fetch the featureinfo in XML format and parsing it > client-side?
Nope. As far as I remember, place the content.ftl in "workspaces/<workspace>" if you want to make the template workspace, or move it down the hierarchy if you want it to be store or layer specific Cheers Andrea -- Andrea Aime OpenGeo - http://opengeo.org Expert service straight from the developers. ------------------------------------------------------------------------------ The Palm PDK Hot Apps Program offers developers who use the Plug-In Development Kit to bring their C/C++ apps to Palm for a share of $1 Million in cash or HP Products. Visit us here for more details: http://p.sf.net/sfu/dev2dev-palm _______________________________________________ Geoserver-users mailing list [email protected] https://lists.sourceforge.net/lists/listinfo/geoserver-users
