How do I use a taxonomy term reference token on a media entity?

Created on 15 July 2019, almost 5 years ago
Updated 7 September 2023, 10 months ago

Hello, hopefully this is a very simple answer to this question.

I created an 'Audio Category' vocabulary with various terms
I added added an entity reference field (field_media_audio_category) to the 'Audio' media type referencing the Audio Category vocabulary
I set the file directory on the field_media_audio_file field to: media/audio/[media:field_media_audio_category:entity:name]/[date:custom:Y]-[date:custom:m]
But, I get: File directory is using the following invalid tokens: [media:field_media_audio_category:entity:name]

Question is, does Core's media module integrate with all of the Tokens from the Token module? Why would the above token not be acceptable as a valid token?

πŸ’¬ Support request
Status

Closed: works as designed

Version

9.5

Component
MediaΒ  β†’

Last updated 36 minutes ago

Created by

πŸ‡ΊπŸ‡ΈUnited States Chris Matthews

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

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.69.0 2024