<!DOCTYPE HTML PUBLIC "-//W3C//DTD HTML 4.0 Transitional//EN">
<HTML><HEAD><TITLE>Message</TITLE>
<META http-equiv=Content-Type content="text/html; charset=us-ascii">
<META content="MSHTML 6.00.2900.2769" name=GENERATOR></HEAD>
<BODY>
<DIV><SPAN class=060141114-02112005><FONT face=Arial color=#0000ff size=2>Xin,
</FONT></SPAN></DIV>
<DIV><SPAN class=060141114-02112005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=060141114-02112005><FONT face=Arial color=#0000ff 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 class=060141114-02112005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=060141114-02112005><FONT face=Arial color=#0000ff size=2>Take a
look at TEMPLATEPATTERN <A
href="http://ms.gis.umn.edu/docs/reference/mapfile/mapObj#templatepattern">http://ms.gis.umn.edu/docs/reference/mapfile/mapObj#templatepattern</A></FONT></SPAN></DIV>
<DIV><SPAN class=060141114-02112005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=060141114-02112005><FONT face=Arial color=#0000ff 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>
<DIV><SPAN class=060141114-02112005><FONT face=Arial color=#0000ff
size=2></FONT></SPAN> </DIV>
<DIV><SPAN class=060141114-02112005><FONT face=Arial color=#0000ff
size=2>David.</FONT></SPAN></DIV>
<BLOCKQUOTE style="MARGIN-RIGHT: 0px">
<DIV></DIV>
<DIV class=OutlookMessageHeader lang=en-us dir=ltr align=left><FONT
face=Tahoma size=2>-----Original Message-----<BR><B>From:</B> UMN MapServer
Users List [mailto:MAPSERVER-USERS@LISTS.UMN.EDU] <B>On Behalf Of
</B>Xin<BR><B>Sent:</B> Wednesday, November 02, 2005 5:36 AM<BR><B>To:</B>
MAPSERVER-USERS@LISTS.UMN.EDU<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></BODY></HTML>