using query templates

Kevin Grootendorst kgrootendorst at BAIRD.COM
Mon Aug 16 15:50:03 EDT 2004


hello list,
I'm trying to setup a mapfile so that when I use the query tool on a point,
the info in the point attribute table is displayed in a customized template
(actually, I want to set up a hotlink to a photo, with the path defined in
the point attribute table, but for now I'm content with just understanding
the basics).  It was my understanding that I could just use the syntax
TEMPLATE "photo.html" in the layer definition, and that template would
automatically be used.
However, when I perform the query, the results are displayed in the default
query window (which I think is defined in query.phtml).
Do I need to somehow make the layer 'query-able'?  Do I need to set the map
into a query mode? Or does that automatically happen when I select the
query tool (I'm assuming it does)?  Do I have to learn php programming in
order to make new templates?

Using Win 2000, MS 4.2

Kevin



More information about the mapserver-users mailing list