[Geoserver-users] Freemarker template design

2014-05-08 Thread Chris Jackson
Hi I have created a custom content template for a GS layer and would like to have the layer title above a list of results. I am using ${type.name} as used in the examples and that works fine. I thought that ${type.title} might work - just throws a java error saying that type.title is undefined.

Re: [Geoserver-users] Freemarker template design

2014-05-08 Thread Andrea Aime
On Thu, May 8, 2014 at 8:33 AM, Chris Jackson webturt...@gmail.com wrote: Hi I have created a custom content template for a GS layer and would like to have the layer title above a list of results. I am using ${type.name} as used in the examples and that works fine. I thought that

Re: [Geoserver-users] Freemarker template design

2014-05-08 Thread Chris Jackson
Hi Andrea I suppose the quick win is to start off with a better name and use something like ${type.name?replace(_, )?capitalize} I guess! I can see benefits to having access to both layer title and abstract in the freemarker templates, one for the future perhaps? Cheers Chris On 8 May 2014