[mapserver-users] MS template file extensions

Puneet Kishor punk.kish at gmail.com
Thu Oct 27 08:20:22 PDT 2011


Nikos,

I was wrong. Only certain extensions may be used for mapserver templates. See the following email from Steve Lime from Sep 11 where he wrote (in response to my query) --

> Issue 1: only certain extensions can be used for templates. I believe .js is legal 
> but .json is not. We could change that in future releases. Could you file a ticket?


On Oct 27, 2011, at 3:16 AM, nikos at maich.gr wrote:

> Thanx all for the response,
> 
> I have tried your suggestions (e.g .mtt extension) and I get an
> 
> "Content-type: text/html msReturnPage(): Web application error. Malformed template name (IUNG.mtt). "
> 
> I'm using ms 5.3-dev from the FW win dist.
> 
> Maybe I'm using the wrong terminology here wrt templates.
> These are not my query templates but my "main application" html page
> the template that gets defined in the "web" section of the mapfile... e.g
> 
> # 5 web IUNG
>  web
>    footer "templates/IUNG_footer.html"
>    header "templates/IUNG_header.html"
>    imagepath "/var/www/html/IUNG/tmp/"
>    imageurl "/IUNG/tmp/"
>    template "IUNG.mtt"
>  end
> # END WEB
> 
> hope this helps to help me ;-)
> 
> regards,
> _______________________________________________
> mapserver-users mailing list
> mapserver-users at lists.osgeo.org
> http://lists.osgeo.org/mailman/listinfo/mapserver-users




More information about the MapServer-users mailing list