Hello,<br><br>I'm using MapServer version 5.0.0 and can successfully change other parameters via a URL, but am having trouble changing the layer template.  I keep getting "loadLayer(): General error message. URL-based TEMPLATE configuration failed pattern validation."<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>  NAME "Test"<br>  STATUS ON<br>  TEMPLATEPATTERN ".*"<br>  ...<br>  LAYER<br>    NAME volcanoes<br>    TEMPLATE 'templates/volcanoes.html'<br>
    ...<br><br>URL:<br><a href="http://host/cgi-bin/mapserv?map=/maps/wms.map&mode=query&qlayer=volcanoes&mapxy=-121+40&map.layer[volcanoes]=TEMPLATE+'templates/volcanoesQuery.html">http://host/cgi-bin/mapserv?map=/maps/wms.map&mode=query&qlayer=volcanoes&mapxy=-121+40&map.layer[volcanoes]=TEMPLATE+'templates/volcanoesQuery.html</a>'<br>
<br>Thank you.<br>