Hello together,

is it possible to get sub-tokens belongs to the media file field? For example: thumbnail image url, video type, ...

I'am trying to get the thumbnail image URL for videos (youtube and vimeo media module) to publish the thumbnail image URL as open graph image url in the html header (with metatag module).

Perhaps I missed a possible easy way?

Comments

dddave’s picture

Version: 7.x-2.0-unstable3 » 7.x-2.x-dev
marktheshark’s picture

I have trouble locating the field_video_url token. Could you post how you got access to it? I'm using media youtube and cannot find it in the replacement patterns. Thanks

AdamGerthel’s picture

Same problem here (except for images). I've activated the "tokens" display mode for file entities, but if the field has more than one image, the result is something like:

<meta content=", 

  
  
  
      

  

, 

  
  
  
      

  

," property="og:image">
wafaa.yousef’s picture

I have the same trouble. No update?

Chris Matthews’s picture

Issue summary: View changes
Status: Active » Closed (outdated)

Closing this issue as outdated. However, if you think this issue is still important, please let us know and we will gladly re-open it for review.
sincerely,
- the Drupal Media Team