Content.ftl looks right to me and that should be the correct folder to 
save it to.  Are you sure the content.ftl file is being saved as a .ftl?
Some text editors will actually save the file as content.ftl.txt, and 
that won't work.

I'm not sure about the header. I'd suggest trying to get just the 
content.ftl working first, then try adding header, etc.
Have you checked your' Geoserver logs yet?

- Ryan

On 2/22/2012 6:57 AM, Francesc Cañas wrote:
> Hi, I'm using version 2.1.3.
>
> I've created this three files and place it to the layer dir (
> \workspaces\<workspace>\<data_store>\<layer>\ ),  but it doesn't work.
>
> Should I have some other file? I don't have any template folder,
> template.ftl or something like this. I've looked all folders as
> FreemakerTemplates tutorial says and I didn't found anything.
>
>
> I want to display the layer info as a list, so I've put this on the
> content.ftl:
>
> <ul class="a">
> <#list features as feature>
>    <li>*Type: ${type.name}* (id:<em>${feature.fid}</em>):
>    <ul class="b">
>    <#list feature.attributes as attribute>
>      <#if !attribute.isGeometry>
>        <li>${attribute.name}: ${attribute.value}</li>
>      </#if>
>    </#list>
>    </ul>
>    </li>
> </#list>
> </ul>
>
> and this in the header.ftl
>
> <html>
>    <head>
>      <title>Projectes d'AUMA</title>
>    </head>
>
>    <body>
>
>
> Is that ok??
>
> Thanks!
>
> --
> View this message in context: 
> http://osgeo-org.1560.n6.nabble.com/Where-to-place-ftl-template-files-in-GeoServer-2-0-0-tp3800333p4494867.html
> Sent from the GeoServer - User mailing list archive at Nabble.com.
>
> ------------------------------------------------------------------------------
> Virtualization&  Cloud Management Using Capacity Planning
> Cloud computing makes use of virtualization - but cloud computing
> also focuses on allowing computing to be delivered as a service.
> http://www.accelacomm.com/jaw/sfnl/114/51521223/
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>

-- 
Ryan Williams
GIS Analyst / Programmer
PAQ Interactive Inc.


------------------------------------------------------------------------------
Virtualization & Cloud Management Using Capacity Planning
Cloud computing makes use of virtualization - but cloud computing 
also focuses on allowing computing to be delivered as a service.
http://www.accelacomm.com/jaw/sfnl/114/51521223/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

Reply via email to