[Mapserver-users] MS 4.0 CGI Bug ?

David Fawcett David.Fawcett at state.mn.us
Tue Dec 23 13:00:47 PST 2003


Steve, 

Look at TEMPLATEPATTERN in the LAYER object. 

http://mapserver.gis.umn.edu/doc40/mapfile-reference.html#templatepattern


To swap templates through URL substitution, you have to set an
expression in template pattern that will match the name of your
template.  

David.



David J. Fawcett
MN Office of Environmental Assistance

>>> <woodbri at swoodbridge.com> 12/23/2003 2:42:11 PM >>>
Unless, I am doing something wrong (which is highly likely :), I can 
not get the CGI interface to replace the TEMPLATE value in the 
mapfile.

I have tried using:

http://....&template=%2Fhome%2Fmsapps%2Ftest_mapfiles%2Ftest_40z_main.
html&....

and 

http://....&map_web_template=%2Fhome%2Fmsapps%2Ftest_mapfiles%2Ftest_4

0z_main.html&....

but neither will replace the template defined in the mapfile.

Can anyone verify this works or doesn't work on mapserver 4.0? so I 
can write a bug if appropriate.

Thanks,
  Steve W.
_______________________________________________
Mapserver-users mailing list
Mapserver-users at lists.gis.umn.edu 
http://lists.gis.umn.edu/mailman/listinfo/mapserver-users



More information about the MapServer-users mailing list