Hello,<br><br>I&#39;m using MapServer version 5.0.0 and can successfully change other parameters via a URL, but am having trouble changing the layer template.&nbsp; I keep getting &quot;loadLayer(): General error message. URL-based TEMPLATE configuration failed pattern validation.&quot;<br>
<br>The documentation on TEMPLATEPATTERN is sparse but from another post <br>(<a href="http://www.nabble.com/Dinamically-changing-HTML-Template-using-CGI-parameter--(instead-of-hardcoded)-td17626183.html">http://www.nabble.com/Dinamically-changing-HTML-Template-using-CGI-parameter--(instead-of-hardcoded)-td17626183.html</a>)<br>
<br>it sounds like it is necessary. Both templates work when hard-coded:<br><br>Mapfile:<br>&nbsp; NAME &quot;Test&quot;<br>&nbsp; STATUS ON<br>&nbsp; TEMPLATEPATTERN &quot;.*&quot;<br>&nbsp; ...<br>&nbsp; LAYER<br>&nbsp;&nbsp;&nbsp; NAME volcanoes<br>&nbsp;&nbsp;&nbsp; TEMPLATE &#39;templates/volcanoes.html&#39;<br>
&nbsp;&nbsp;&nbsp; ...<br><br>URL:<br><a href="http://host/cgi-bin/mapserv?map=/maps/wms.map&amp;mode=query&amp;qlayer=volcanoes&amp;mapxy=-121+40&amp;map.layer[volcanoes]=TEMPLATE+&#39;templates/volcanoesQuery.html">http://host/cgi-bin/mapserv?map=/maps/wms.map&amp;mode=query&amp;qlayer=volcanoes&amp;mapxy=-121+40&amp;map.layer[volcanoes]=TEMPLATE+&#39;templates/volcanoesQuery.html</a>&#39;<br>
<br>Thank you.<br>