[mapserver-users] Query Template
Steve Lime
steve.lime@dnr.state.mn.us
Mon, 07 Oct 2002 18:07:53 -0500
You can't have a URL template be a regular template. It's either one or
the other. If a URL template then it must be a fully qualified URL (ie.
starts with http://) and the MapServer will redirect to (and not parse)
that page. Presumably since you have HTML files named based on some
attribure key then there's no need to parse the file and the above
advice will work for you.
Steve
Stephen Lime
Data & Applications Manager
Minnesota DNR
500 Lafayette Road
St. Paul, MN 55155
651-297-2937
>>> Richard Greenwood <Rich@greenwoodmap.com> 10/01/02 12:45PM >>>
>A basic question I think. How can you set the Query template to be
>dependent on the query itself?
>
>I'm picturing something like this: TEMPLATE "[ATTRIBUTE].html"
That should work. Also TEMPLATE
"query_handler.php?attribute=[ATTRIBUTE]"
should work if you want to pass it to a server-side script. But you can
not
use that for queries that might return more than one record
(itemnquery)
because you can only redirect once.
Rich
Richard W. Greenwood, PLS
Greenwood Mapping, Inc.
Rich@GreenwoodMap.com
(307) 733-0203
http://www.GreenwoodMap.com