Using file description instead of file name as link text is impossible

Created on 11 November 2024, 4 months ago

Problem/Motivation

The "Download All Files" module currently does not display the descriptions entered for individual files. File descriptions are often crucial for providing additional context or metadata, and their absence can impact the clarity and usability of the file listings.

Steps to reproduce

Install and enable the "Download All Files" module.
Create or edit a content type to add a file field that allows multiple uploads.
Upload multiple files and add descriptions for each.
View the node or entity displaying the file field with the "Download All" link.
Observe that file descriptions are missing from the display.

Proposed resolution

Enhance the module to display file descriptions alongside each file listed with the "Download All" link. This could be implemented by pulling the description data stored with each file field item and rendering it accordingly.

Remaining tasks

Develop a patch or modify the code to include descriptions in the output.
Test for compatibility with different themes and file display settings.

User interface changes

The file descriptions should now appear alongside each file in the list displayed by the "Download All Files" module, enhancing the visibility of descriptive information without altering existing visual structure significantly.

API changes

No API changes are anticipated as this change would involve display logic adjustments rather than modifications to underlying data structures.

Data model changes

No changes to the data model are expected, as the file descriptions are already stored within the file field items.

🐛 Bug report
Status

Active

Version

2.0

Component

Code

Created by

🇹🇷Turkey makbay

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Merge Requests

Comments & Activities

Production build 0.71.5 2024