[mapserver-users] Query Template
Steve Lime
steve.lime at dnr.state.mn.us
Mon Oct 7 16:07:53 PDT 2002
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 at 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 at GreenwoodMap.com
(307) 733-0203
http://www.GreenwoodMap.com
More information about the MapServer-users
mailing list