[GIS] How to Add image and hyperlink along with GetFeatureInfo Popup

openlayers-2popup

I want to cutomize the Geoserver GetFeatureInfo Popup. I want to add image against each parcel I click. For this purpose I've read to change the content.ftl file of geoserver. But I found that file in wms.jar file. So, I extract it and after changing the content.ftl file, when i agin convert into .jar file, Geoserver doesn't work.
Is there a solution to it?
Any other suggestion to add the image along Featureinfo.

Best Answer

did you check out GetFeatureInfo Templates here? i think it helps you about your problem.

So, what do you have to do if you want to override the custom templates? Well, it depends on which template you want to override.

header.ftl and footer.ftl are type independent, so if you want to override them you have to place a file named header.ftl or footer.ftl in the templates directory, located in your GeoServer GeoServer Data Directory. On the contrary, content.ftl may be generic, or specific to a feature type.

geoserver

i hope it helps you...

Related Question