How do I configure automatic ALT text for images in Site Studio after I use Entity Browser or Media library?
How do I configure automatic ALT text for images in Site Studio after I use Entity Browser or Media library? | Site Studio | Acquia Product Documentation
How do I configure automatic ALT text for images in Site Studio after I use Entity Browser or Media library?
Date Published: August 3, 2026
After a site configuration uses Entity Browser or Media library for image selection, the Image and Picture elements in the components do not automatically populate the alternative (ALT) text from the media entity. To ensure accessibility, you must map the ALT text by means of a specific Drupal token in Site Studio 8.2.6 or later.
Configuring automatic ALT text
To fetch the media entity ALT text, complete the following steps:
Navigate to the particular component in Site Studio.
Edit the component that contains the Image or Picture element.
Locate the Alt tag field in the element settings.
Enter the token: [media-entity-reference:media-alt].
Save the component settings.
After you insert this token, Site Studio fetches and displays the ALT text associated with the referenced media entity when this component renders.
Configuring Acquia DAM for ALT text
To ensure that the Acquia DAM configuration is correct for ALT text, complete the following verification steps:
Review the ALT text settings at /admin/config/acquia-dam/metadata to ensure that you select the desired metadata fields for mapping.
Ensure that the ALT text field maps correctly in the Drupal media type settings at admin/structure/media/manage/acquia_dam_image_asset under the Map Fields section.
Note on Alternative configurations
If a component uses the Entity browser or Entity reference elements to render media entities, Site Studio renders the media in the standard Drupal method based on the selected view mode. These cases do not require additional tokens to render the ALT text.