[mapserver-users] Problem with a GetFeatureInfo - info_format = text/html
Martin Ouellet
geomartino at gmail.com
Wed Nov 18 14:24:13 PST 2009
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 <dmorissette at mapgears.com>
> 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
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users
>
-------------- next part --------------
An HTML attachment was scrubbed...
URL: <http://lists.osgeo.org/pipermail/mapserver-users/attachments/20091118/287b98a5/attachment.htm>
More information about the MapServer-users
mailing list