Media File Formatters
No security coverage
File formatters for media entity file fields.
- Use media "Name" field instead of description as the file link text.
- Render file as its "Description" only with no link. Useful with Views when wanting to display the file field's description rather than create a new field.
The option to open a document in a new window requires this core patch: #2727281-43: Link to file can't be altered in a field formatter
When using the "Name" field as the link text, the "Description" field can be displayed separately in the template file:
{{ file._referringItem.description }}
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 | Notes | Release date | |
|---|---|---|---|---|---|
| 8.x-1.0-alpha3 | Pre-release | Drupal 11 support. | Oct 1, 2024 |