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.
If you set it up the same way as they describe, and then copy/paste the project path directly in front of the relative path in the action code, then it will open the image.
C:\Users\...\[% "photo_path" %]
The only issue with this is that you'll have to change the URL in the action if you change the project path. There should be a way to access the project path from within the program, but I haven't been able to find that yet.