[Geoserver-devel] [JIRA] (GEOS-9373) Ducmentation Update to GetFeatureInfo Templates

Vera Green created an issue

GeoServer / ImprovementGEOS-9373

Ducmentation Update to GetFeatureInfo Templates

Issue Type:

ImprovementImprovement

Affects Versions:

2.15.0

Assignee:

Unassigned

Created:

18/Oct/19 3:51 PM

Priority:

LowLow

Reporter:

Vera Green

I am suggestion the following update to this page:
https://docs.geoserver.org/stable/en/user/tutorials/GetFeatureInfo/index.html#custom-templates

The Template Lookup Section:
Current Documentation Says (I made green what is correct and Red what is incorrect)
Look into GEOSERVER_DATA_DIR/workspaces/<workspace>/<datastore>/<featuretype>/content.ftl to see if there is a feature type specific template
Look into GEOSERVER_DATA_DIR/workspaces/<workspace>/<datastore>/content.ftl to see if there is a store specific template
Look into GEOSERVER_DATA_DIR/workspaces/<workspace>/content.ftl to see if there is a workspace specific template
Look into GEOSERVER_DATA_DIR/workspaces/content.ftl looking for a global override
Look into GEOSERVER_DATA_DIR/templates/content.ftl looking for a global override
Look into the GeoServer classpath and load the default template

It should say:
Look into GEOSERVER_DATA_DIR/templates/ for the header.ftl and footer.ftl. This directory may not exist. Create the folder and set correct folder permissions.

For a standard installation of GeoServer as a webapp in Tomcat the paths are:

  1. create a templates folder at /opt/tomcat/webapps/geoserver/data/
  2. put your header and footer in this templates folder
  3. put your content.ftl in /opt/tomcat/webapps/geoserver/data/workspaces to have it apply to all workspaces or as per the instructions in specific lower folders to apply at the store or layer level.
cd /opt/tomcat/webapps/geoserver/data/workspaces
cp /yourPath/content.ftl .
chown tomcat:tomcat content.ftl
cd ..
mkdir templateschown tomcat:tomcat templates&nbsp;&nbsp;
cp /yourPath/header.ftl templates/.
cp /yourPath/footer.ftl templates/.
chown tomcat:tomcat templates/*

This is my first time posting an issue her. Hope I did it right .

Add Comment

Add Comment

Get Jira notifications on your phone! Download the Jira Cloud app for Android or iOS


This message was sent by Atlassian Jira (v1001.0.0-SNAPSHOT#100113-sha1:b2b9d89)

Atlassian logo