5

I would like to have the URL from an attribute (in the attribute table) as a 'hotlink' wherein you can click on the URL and it opens the browser with the data. As it is right now, I'm having to identify feature, R-click on the URL and copy/paste the URL into a browser.

8

Take a look in Action menu at QGIS documentation. You need to define an action, this could be open urls defined by a field.

  • Open your vector's properties, go to actions and select + button.
  • type = open.
  • Action text = [%url_field%] and click insert.

To ejecute action, click in your object with Run feature action button (attributes toolbar).

  • Good answer. Would be nice if QGIS implemented a feature to automatically hotlink URL's that are in the attribute table, so user can directly click on it from the attribute table – Chris Dec 4 '16 at 20:05
0

You have to:

  1. Add a text field (PATH for example) to table and place the url to the pdf in the that field.

  2. Then go to layer properties and go to actions and add new action

  3. Type = open, Action text type [% "PATH" %]

  4. Select OK and apply.

Your Answer

By clicking “Post Your Answer”, you agree to our terms of service, privacy policy and cookie policy

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