Changing template "on-the-fly"

Tim Mackey Timothy.Mackey at GA.GOV.AU
Mon Nov 22 17:10:11 EST 2004


Hi Daniele,

You will need to add "TEMPLATEPATTERN" to the "MAP" part of the map file:
http://mapserver.gis.umn.edu/doc42/mapfile-reference.html#map 

A line like this means "allow any template"
TEMPLATEPATTERN ".*"

A line like this means all any template where the file name contains ".html"
(a bit more secure)
TEMPLATEPATTERN ".html"

If you don't have a "TEMPLATEPATTERN, then "&map_web_template=..." will not
work.

Regards,
 
Tim Mackey
Geoscience Australia
 
-----Original Message-----
From: UMN MapServer Users List [mailto:MAPSERVER-USERS at LISTS.UMN.EDU] On
Behalf Of Daniele Margotti
Sent: Monday, 22 November 2004 10:43 PM
To: MAPSERVER-USERS at LISTS.UMN.EDU
Subject: Changing template "on-the-fly"

Hi list,
I use CGI MapServer and I know that I can change "on-the-fly" parameter
values of a mapfile using "&map_VARIABLE=NEW VALUE" in the browser address.

Now, I want to change the template, and I thought I could
use "&map_web_template=/path_to_my_data/new_template.html", but...
MapServer still uses the template defined in the mapfile.

How can I do?

Thanks,
  Daniele



More information about the mapserver-users mailing list