[mapserver-users] Problem with a GetFeatureInfo - info_format	=	text/html
    Daniel Morissette 
    dmorissette at mapgears.com
       
    Wed Nov 18 13:43:52 PST 2009
    
    
  
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/
    
    
More information about the MapServer-users
mailing list