- π¬π§United Kingdom robcarr Perthshire, Scotland
The patch at 11 works fine.
The patch at 15 is really helpful, but not necessarily relevant to this issue, and should be added to a fresh issue as a separate feature request. - π§πͺBelgium bramvandenbulcke
Patch #11 is working well. I'm using Drupal 10.2.5 at the moment.
Steps taken:
- Make sure download link is set for Document under /admin/structure/media/manage/document/display. And for my use case: add Name to the form display
- Add patch #11 to composer.patches.json and run composer install
- Copy the media-entity-download-link.html.twig template from /modules/contrib/media_entity_download/templates to the theme folder
- Apply the changes in the markup. I'm using the Name field as the link text. This makes the most sense (the description field is not available anyway). This code inside the Twig block: {{ link|merge({'#title': media_entity.name.value }) }}
- πΊπΈUnited States wrd-oaitsd
Looks like this patch isn't applying to the latest dev release.
- πΊπΈUnited States wrd-oaitsd
Trying to reroll #11 for the latest dev release.
- πΊπΈUnited States wrd-oaitsd
That patch had a rather significant error...here's a new one.