Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
In the TPL files, the audio player seems to be populated by this line of code:
<a href="<?php print $audio_file; ?>"><?php print $audio_title; ?></a>
I'm wondering where in the code the $audio_file variable pulls the URL to embed via href in the code. In short, I'm wanting to change the source so I can print the URL from a text field into the $audio_file variable. So, instead of pulling the $audio_file URL from the uploaded file, it populates it from "textbox1" field.
Comments
Comment #2
ssimdev CreditAttribution: ssimdev at Websolutions Agency commentedThis could be related to issue Support for external Media files - support link field. To give you short help for customization: In your custom module with hook_field_formatter_view() you can try to overwrite $items['uri'].