Take the 2-minute tour ×
Geographic Information Systems Stack Exchange is a question and answer site for cartographers, geographers and GIS professionals. It's 100% free, no registration required.

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
add comment

1 Answer

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
add comment

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.