<html dir="ltr">
<head>
<meta http-equiv="Content-Type" content="text/html; charset=Windows-1252">
<style>
<!--
@font-face
        {font-family:Wingdings}
@font-face
        {font-family:Wingdings}
@font-face
        {font-family:Calibri}
p.MsoNormal, li.MsoNormal, div.MsoNormal
        {margin:0in;
        margin-bottom:.0001pt;
        font-size:11.0pt;
        font-family:"Calibri","sans-serif"}
a:link, span.MsoHyperlink
        {color:blue;
        text-decoration:underline}
a:visited, span.MsoHyperlinkFollowed
        {color:purple;
        text-decoration:underline}
span.EmailStyle17
        {font-family:"Calibri","sans-serif";
        color:windowtext}
.MsoChpDefault
        {font-family:"Calibri","sans-serif"}
@page WordSection1
        {margin:1.0in 1.0in 1.0in 1.0in}
-->
</style><style id="owaParaStyle" type="text/css">P {margin-top:0;margin-bottom:0;}</style>
</head>
<body ocsi="0" fpstyle="1" lang="EN-US" link="blue" vlink="purple">
<div style="direction: ltr;font-family: Tahoma;color: #000000;font-size: 10pt;">What do your query strings look like? - Steve<br>
<br>
<div style="font-family: Times New Roman; color: #000000; font-size: 16px">
<hr tabindex="-1">
<div style="direction: ltr;" id="divRpF812466"><font color="#000000" face="Tahoma" size="2"><b>From:</b> mapserver-users-bounces@lists.osgeo.org [mapserver-users-bounces@lists.osgeo.org] on behalf of Bistrais, Bob [Bob.Bistrais@maine.gov]<br>
<b>Sent:</b> Thursday, July 05, 2012 2:01 PM<br>
<b>To:</b> mapserver-users@lists.osgeo.org<br>
<b>Subject:</b> [mapserver-users] How to get layer name in an identify template?<br>
</font><br>
</div>
<div></div>
<div>
<div class="WordSection1">
<p class="MsoNormal">I am trying to set up a single template, which will format the results of an identify (query by point).  Many of the layers have the same item names, so I’d like to use the same template for those layers.   I have this working well, except
 that I’d like the layer name to appear at the top of each query result.  How can I put this in as a variable that MapServer can interpret?</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal">Below is my sample code of the template.  I put [wms_title] in as the variable for the layer name, but this doesn’t work:</p>
<p class="MsoNormal"> </p>
<p class="MsoNormal"><!-- MapServer Template --></p>
<p class="MsoNormal"><hr/></p>
<p class="MsoNormal"><tr></p>
<p class="MsoNormal"><td colspan="2"><b>[wms_title]</b></td>        <span style="font-family:Wingdings">
ß</span>-I want to replace [wms_title] with something that will return the layer name</p>
<p class="MsoNormal"></tr></p>
<p class="MsoNormal"><tr></p>
<p class="MsoNormal"><td align="left"><b>Tile:</b> &nbsp [tilename]</td></p>
<p class="MsoNormal"></tr></p>
<p class="MsoNormal"><tr></p>
<p class="MsoNormal"><td align="left"><b>Download Image:</b> &nbsp <a href=[LINK]>[LINK]</a></td></p>
<p class="MsoNormal"></tr></p>
<p class="MsoNormal"> </p>
</div>
</div>
</div>
</div>
</body>
</html>