English

How To: Add a photo to an HTML Popup tab

Summary

The default HTML Popup for a feature layer displays an HTML table containing the names and values of the layer's attributes. Photos can also be displayed, in addition to alphanumeric content. Instructions provided describe how to add a photo to an HTML Popup tab.

Procedure

  1. Open ArcMap. Open the attribute table of the target feature class by right-clicking the feature class in the Table of Contents then clicking Open Attribute Table.
  2. Click Options > Add Field. Add a new text field to the feature class's attribute table with a length of at least 50.
  3. Start an editing session in ArcMap. For each feature that will have an image displayed in the HTML Popup, enter the following HTML image tag as a value for the record in the new field:

    <img alt="File" src="\\ServerName\FolderName\PhotoName.JPG\" />

    The source (src) value will be the UNC path leading to the image file on the server such as:

    <img alt="File"
    src="\\Production\Houses\123_Main.jpg\"/>

    Stop editing, and save the changes when prompted.
  4. In the table of contents, right-click the layer that will have HTML content enabled and click Properties.
  5. Click the HTML Popup tab.
  6. Check 'Show content for this layer using the HTML Popup tool'.
  7. Click OK.

Related Information