Yes, you can have layer-specific templates. Here are the rules for where
GeoServer looks to find templates:
http://docs.geoserver.org/stable/en/user/tutorials/freemarker.html?highlight=getfeatureinfo#template-lookup
Hope this helps.
--
David Winslow
OpenGeo - http://opengeo.org/
On Thu, Sep 16, 2010 at 2:51 AM, Khan M. Rizwan <khanrizwan....@gmail.com>wrote:
> Hi All,
>
> With reference to the tutorial at
>
> http://docs.geoserver.org/stable/en/user/tutorials/GetFeatureInfo/index.html#tutorials-getfeatureinfo
>
> I managed to get the FeatureInfo in bullet form, but wanted to know whether
> we can have different templates for different layers? if so, how?
> Another problem i have is that when a user clicks on a feature the
> FeatureInfo should display only few attribute but when asked for all
> attributes all the attributes should be displayed.
> So I suppose we should have two set of templates for this, which should be
> switched at run-time (according to users wish).
>
> Regards,
> M. Rizwan Khan
>
> ------------------------------------------------------------------------------
> Start uncovering the many advantages of virtual appliances
> and start using them to simplify application deployment and
> accelerate your shift to cloud computing.
> http://p.sf.net/sfu/novell-sfdev2dev
> _______________________________________________
> Geoserver-users mailing list
> Geoserver-users@lists.sourceforge.net
> https://lists.sourceforge.net/lists/listinfo/geoserver-users
>
>
------------------------------------------------------------------------------
Start uncovering the many advantages of virtual appliances
and start using them to simplify application deployment and
accelerate your shift to cloud computing.
http://p.sf.net/sfu/novell-sfdev2dev
_______________________________________________
Geoserver-users mailing list
Geoserver-users@lists.sourceforge.net
https://lists.sourceforge.net/lists/listinfo/geoserver-users