Re: [mapserver-users] MS template file extensions

2011-10-27 Thread Puneet Kishor
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, ni...@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@lists.osgeo.org
 http://lists.osgeo.org/mailman/listinfo/mapserver-users

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


Re: [mapserver-users] MS template file extensions

2011-10-26 Thread Puneet Kishor

On Oct 26, 2011, at 8:33 AM, ni...@maich.gr wrote:

 Hello,
 
 Is there a way to allow ms templates with an arbitrary file extension?
 I see support in the template doc's for html, xml, jso...
 WHat if someone wanted to use a jsp page a php page or a tml page as a 
 template to gain server substitutin as well?
 

I believe there is no restriction (I use .mtt for map server template). You can 
choose whatever extension you like, or even have no extension if you wish.

--
Puneet Kishor

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


RE: [mapserver-users] MS template file extensions

2011-10-26 Thread Fawcett, David (MPCA)
At the same time, I don't believe that a template will get handed off to the 
php, java, etc. engine after processing by MapServer.  

-Original Message-
From: mapserver-users-boun...@lists.osgeo.org 
[mailto:mapserver-users-boun...@lists.osgeo.org] On Behalf Of Puneet Kishor
Sent: Wednesday, October 26, 2011 8:48 AM
To: mapserver-users@lists.osgeo.org
Subject: Re: [mapserver-users] MS template file extensions


On Oct 26, 2011, at 8:33 AM, ni...@maich.gr wrote:

 Hello,
 
 Is there a way to allow ms templates with an arbitrary file extension?
 I see support in the template doc's for html, xml, jso...
 WHat if someone wanted to use a jsp page a php page or a tml page as a 
 template to gain server substitutin as well?
 

I believe there is no restriction (I use .mtt for map server template). You can 
choose whatever extension you like, or even have no extension if you wish.

--
Puneet Kishor

___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users


___
mapserver-users mailing list
mapserver-users@lists.osgeo.org
http://lists.osgeo.org/mailman/listinfo/mapserver-users