Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

Sign up
Here's how it works:
  1. Anybody can ask a question
  2. Anybody can answer
  3. The best answers are voted up and rise to the top

I would like to modify the opengeo sdk gxp.FeatureEditPopup. I want to construct a clickable hyperlink, I would like to add a new field to the popup that would be "http://someurl.com/" followed by a field from my data: "http://someurl.com/someDataField". Any ideas would be appreciated. Ben

share|improve this question

You can use the editorPluginConfig config option to configure a custom editor plugin. Look at https://github.com/opengeo/gxp/blob/master/src/script/plugins/FeatureEditorGrid.js to see the default plugin. Then, with help from the Ext JS documentation, configure custom field renderers. And note that what you want to achieve will only work in read-only mode.

share|improve this answer
    
Thank for the feedback, this sounds like a big commitment for a simple feature. Perhaps I will add a view in Geoserver that will include the hyperlink. If I do this, is there a way to make a hyperlink clickable inside the getFeatureInfo popup? – Bwyss Jun 18 '13 at 12:59
    
If you use text/html as feature info format, and create the template on the server, you're all way there already. – ahocevar Jun 19 '13 at 13:44
    
I went with the template solution. Thanks – Bwyss Jun 19 '13 at 15:51

first for all, you should a string field in your vector table that contains the url like this http://www.htmlpoint.com' TARGET='_new'>Visita HTMLpoint after that, you must define the info format = test/html in the geoexplorer map composer.

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.