Thanks Daniel, with the correct path, it's working great! but I also had to put the "magic string" at the top of my file to make it work: <!-- Mapserver Template -->
MartinOuellet 2009/11/18 Daniel Morissette <[email protected]> > Martin Ouellet wrote: > >> Hi, >> >> I've got the current layer definition >> >> [...] > > TEMPLATE "http://geomsp.msp.gouv.qc.ca/communs/todo2.html" >> > [...] > > > > >> I receive this response: >> [DATE_PRODUCTION] -> mapserver dont seem to replace the variable with the >> query value >> >> > When you specify a URL in the TEMPLATE parameter, then the parameters > replacement is done in the URL itself, and MapServer will redirect the > client to the URL in which the variable replacements have been made e.g. > > TEMPLATE " > http://geomsp.msp.gouv.qc.ca/communs/todo2.html?DATEPROD=[DATE_PRODUCTION] > " > > To use a regular template file, you need to specify its path on disk, and > then MapServer will load the template and do the variable replacements > inside the template. e.g. > > TEMPLATE "/path/to/communs/todo2.html" > > Daniel > -- > Daniel Morissette > http://www.mapgears.com/ > _______________________________________________ > mapserver-users mailing list > [email protected] > http://lists.osgeo.org/mailman/listinfo/mapserver-users >
_______________________________________________ mapserver-users mailing list [email protected] http://lists.osgeo.org/mailman/listinfo/mapserver-users
