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.
Current the player provides options for the text to display on the player as follows:
- Filename
- Description
- Node/entity title
Sometimes, the role of the player is obvious from context.
- If a view has a player on each row, and another column in the view already give a title, then the player doesn't need to repeat that. It could just say "Play".
- If a content type has an audio field that represents some aspect of the corresponding node (e.g. for a bird node it could be the sound of the bird song), then the player text could just say "List to song"
You can do this now using the description, but only by manually setting the exact same description on every single instance.
In both cases, the requirement is to define some static text on the formatter settings that will be used for all instances. Patch coming up, thanks.
Comment | File | Size | Author |
---|---|---|---|
#2 | soundmanager.static-text.2596031-2.patch | 8.7 KB | AdamPS |
Comments
Comment #2
AdamPS CreditAttribution: AdamPS commentedI reduced duplication in one function. It made the code simpler, but the diff larger, so shout if that's not what you want. Thanks.