purplespider/asset-alt-text

Adds an alternative text field to Image assets, so that you don't need to use the image 'Title' field.

Maintainers

👁 purplespider

Package info

github.com/purplespider/silverstripe-asset-alt-text

Type:silverstripe-vendormodule

pkg:composer/purplespider/asset-alt-text

Statistics

Installs: 21 554

Dependents: 5

Suggesters: 0

Stars: 4

Open Issues: 1

3.0.0 2025-08-20 14:32 UTC

Requires (Dev)

Suggests

None

Provides

None

Conflicts

None

Replaces

None

BSD-3-Clause 066c5e253f14d828fbb9d95df7edf56497da66af

  • James Cocker <ssmodules.woop@pswd.biz>

assetssilverstripealt

This package is auto-updated.

Last update: 2026-06-20 16:10:08 UTC


README

Adds an alternative text field to Image assets, so that you don't need to use the image Title field (which would typically be more succinct than useful alt text).

As a bonus feature, when adding an image to an HTMLEditorField, the alt text field gets pre-filled with any asset alt text.

Usage

Install via composer composer require purplespider/asset-alt-text

dev/build

Go to the Files and select an image to see the new field:

👁 Image

To make use of the alt text value in your templates, just use $AltText. e.g.:

<% with BannerImage %>
 <img src="$URL" width="$Width" height="$Height" alt="$AltText" />
<% end_with %>