purplespider/asset-alt-text
最新稳定版本:3.0.0
Composer 安装命令:
composer require purplespider/asset-alt-text
包简介
Adds an alternative text field to Image assets, so that you don't need to use the image 'Title' field.
关键字:
README 文档
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:
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 %>
统计信息
- 总下载量: 18.08k
- 月度下载量: 0
- 日度下载量: 0
- 收藏数: 5
- 点击次数: 1
- 依赖项目数: 4
- 推荐数: 0
其他信息
- 授权协议: BSD-3-Clause
- 更新时间: 2021-07-09