Use this guide to link a path name to a feature's photo in the attribute table.
This assumes you have a column in your data containing the full path to the image you'd like to open (in this example, a field called photo_path
).
- Right click feature class → Properties
- On Actions tab:
- Type: Open
- Name: Open Photo
- Action:
[% "photo_path" %]
(select the field from the list and click "insert field")
- Add to action list
With the info window for a feature open, right click the photo_path
field and you'll see your custom "Open Photo" action at the bottom. Now photos can be opened with one click from the attribute table using the default system image viewer.
Could you provide and example when the text field contains a relative path? For example how do you create an action that opens a photo when the text field is storing "media/img1234.jpg" (minus the quotes)?