This module provides a way to add custom attributes to file links when files are referenced in an entity. It offers a new widget to set these attributes during file uploads and a formatter to render the file as a link with those attributes.
If you have an entity containing a field referencing a File entity, and you want that File to be rendered as a link with extra custom attributes, then this is your module.
This module offers a new Field Widget for those fields referencing a File entity. This widget exposes new form controls through which you can set additional attributes (e.g. the "rel" attribute) to the File being uploaded.
In addition, a new Field Formatter is offered which will render the File as a link including the additional attributes in the anchor tag ().
Ask your assistant about File attributes
Check compatibility with your Drupal and PHP version, maintenance and security coverage, from current release data. How it works
Depends on
Dependencies of the latest stable release
No dependencies recorded for this project.
Required by
Tracked projects that depend on this one
No tracked projects depend on this one yet.
Activity
Releases
| Version | Type | Core | PHP | Release date | |
|---|---|---|---|---|---|
| 8.x-2.0 | Stable | 9–10 | Aug 11, 2024 |