David,<br>
<br>
Thanks! I remember reading that somewhere now, didn't think too
much of it since we were able to change templates onthefly, just not
header/footers.<br>
<br>
I've just tested it out, it works like a dream. One thing though,
the regular expression has to be in quotes. Having /./ by itself
doesn't seem to work. My line reads: TEMPLATEPATTERN "."<br>
<br>
<br>
thanks again.<br>
<br>
Xin<br>
<br>
ps. I am using 4.6! typo<br><br><div><span class="gmail_quote">On 02/11/05, <b class="gmail_sendername">Fawcett, David</b> <<a href="mailto:David.Fawcett@state.mn.us">David.Fawcett@state.mn.us</a>> wrote:</span><blockquote class="gmail_quote" style="border-left: 1px solid rgb(204, 204, 204); margin: 0pt 0pt 0pt 0.8ex; padding-left: 1ex;">
<div><span><font color="#0000ff" face="Arial" size="2">Xin,
</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span><font color="#0000ff" face="Arial" size="2">I
assume that you are really are using MapServer 4.6. If you are actually using
version 2.6 I suggest that you upgrade for many, many reasons.
</font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span><font color="#0000ff" face="Arial" size="2">Take a
look at TEMPLATEPATTERN <a href="http://ms.gis.umn.edu/docs/reference/mapfile/mapObj#templatepattern" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">http://ms.gis.umn.edu/docs/reference/mapfile/mapObj#templatepattern
</a></font></span></div>
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span><font color="#0000ff" face="Arial" size="2">In
your mapfile, you need to set a template pattern that will match your
template name. You are not able to substitute template names through the
URL unless you set an appropriate templatepattern. </font></span></div><span class="sg">
<div><span><font color="#0000ff" face="Arial" size="2"></font></span> </div>
<div><span><font color="#0000ff" face="Arial" size="2">David.</font></span></div></span><div><span class="e" id="q_1075156162c8f6af_2">
<blockquote style="margin-right: 0px;">
<div></div>
<div align="left" dir="ltr" lang="en-us"><font face="Tahoma" size="2">-----Original Message-----<br><b>From:</b> UMN MapServer
Users List [mailto:<a href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">MAPSERVER-USERS@LISTS.UMN.EDU</a>] <b>On Behalf Of
</b>Xin<br><b>Sent:</b> Wednesday, November 02, 2005 5:36 AM<br><b>To:</b>
<a href="mailto:MAPSERVER-USERS@LISTS.UMN.EDU" target="_blank" onclick="return top.js.OpenExtLink(window,event,this)">MAPSERVER-USERS@LISTS.UMN.EDU</a><br><b>Subject:</b> [UMN_MAPSERVER-USERS]
Changing layer templates on the fly<br><br></font></div>Hi,<br><br>I'm using
MapServer 2.6 via CGI, it's working really well. After reading about
changing attributes on-the-fly via CGI parameters I've been hooked on
it. Changing everything from layer tolerance (map_mylayer_tolerance=10)
to templates (map_mylayer_template=file.html). But for the life of me, I
can't figure out how to change header templates! It simply doesn't
work.<br><br>I've tried searching in the mailing list, but there is
nothing. map_mylayer_header=header.html just doesn't work.
Specifying the header attribute in the mapfile works file, but I'd rather
change it dynamically. I realise the layer portion is case-sensitive, so
that's not the problem.<br><br>Your help is greatly
appreciated.<br><br>Xin<br></blockquote>
</span></div></blockquote></div><br>