[Geoserver-users] Freemarker templates

Hi andrea,

the reason why it does not work in my application is the following. I use
mapbender 2.5 and when there are more layer requestable the request does not
use the header.ftl and the footer.ftl.
I placing them into \data_dir\featureTypes and it works for all layer but
only if ther is only one layer requestable.
is it a problem in mapbender?

Greeting Thomas

-----Ursprüngliche Nachricht-----
Von: Andrea Aime [mailto:aaime@anonymised.com]
Gesendet: Dienstag, 28. Oktober 2008 10:38
An: Janßen, Thomas
Cc: geoserver-users@lists.sourceforge.net
Betreff: Re: [Geoserver-users] Freemarker templates

Janßen, Thomas ha scritto:

Hi,

I have writen a header.ftl and a footer.ftl. I have copied it into
\data_dir\featureTypes\TEST\ and it works fine.
but now i want to use the files for all layers.
into which folder must i copy the header.ftl and the footer.ftl?

Just move them up one level, placing them into \data_dir\featureTypes

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Janßen, Thomas ha scritto:

Hi andrea,

the reason why it does not work in my application is the following. I use
mapbender 2.5 and when there are more layer requestable the request does not
use the header.ftl and the footer.ftl. I placing them into \data_dir\featureTypes and it works for all layer but
only if ther is only one layer requestable.
is it a problem in mapbender?

I have no idea since I never used mapbender. If the functionality works
fine in the GeoServer preview you can probably assume it's an issue
with MapBender. (click on the map and see the result appear below it, provided you're not using 1.6.5 that has a bug in
that respect, try out GeoServer 1.7.0 in that case)

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

Hi Thomas,

from the mapbender side, this is true: mapbender collects all
layernames that shall be queried for one wms and sends one
getfeatureinfo request. The question is, whether your header / footer
should surround all layer results once or surround each layers result?

You could also consider adding an enhancement ticket with mapbender to
support layerwise getFI requests.

Haven't used templates with geoserver, but what about symlinks in each
FT directory? Could that work?

Cheers, Michael

2008/10/28 Andrea Aime <aaime@anonymised.com>:

Janßen, Thomas ha scritto:

Hi andrea,

the reason why it does not work in my application is the following. I use
mapbender 2.5 and when there are more layer requestable the request does not
use the header.ftl and the footer.ftl.
I placing them into \data_dir\featureTypes and it works for all layer but
only if ther is only one layer requestable.
is it a problem in mapbender?

I have no idea since I never used mapbender. If the functionality works
fine in the GeoServer preview you can probably assume it's an issue
with MapBender. (click on the map and see the result appear below it,
provided you're not using 1.6.5 that has a bug in
that respect, try out GeoServer 1.7.0 in that case)

Cheers
Andrea

--
Andrea Aime
OpenGeo - http://opengeo.org
Expert service straight from the developers.

-------------------------------------------------------------------------
This SF.Net email is sponsored by the Moblin Your Move Developer's challenge
Build the coolest Linux based applications with Moblin SDK & win great prizes
Grand prize is a trip for two to an Open Source event anywhere in the world
http://moblin-contest.org/redirect.php?banner_id=100&url=/
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users

--
-----------------------------------------------------------
Michael Schulz
mschulz@anonymised.com

in medias res
Gesellschaft für Informationstechnologie mbH

In den Weihermatten 66
79108 Freiburg

Tel +49 (0)761 556959-5
Fax +49 (0)761 556959-6

http://www.webgis.de / http://www.zopecms.de
-----------------------------------------------------------
Geschäftsführer: Stefan Giese, Dr. Christof Lindenbeck
Eingetragen im Handelsregister HRB 5930 beim Amtsgericht Freiburg

I have no idea since I never used mapbender. If the functionality works
fine in the GeoServer preview you can probably assume it's an issue
with MapBender. (click on the map and see the result appear below it, provided you're not using 1.6.5 that has a bug in
that respect, try out GeoServer 1.7.0 in that case)

Unless I am interpreting wrong it sounds like the issue is that GeoServer is not loading the template when multiple layers are selected in a GetFeatureInfo, and one of the layers does not have a template attached to it? Sounds like it might be an issue on our side?

Cheers
Andrea

--
Justin Deoliveira
OpenGeo - http://opengeo.org
Enterprise support for open source geospatial.