Hello and thanks for the powerfull module!
I want to input meta tags in my template, for Google indexing of the content. In Drupal 6 I added this in my template:

<link rel="image_src" href="<?php print $node->content['field_share_video']['field']['items'][0]['#item']['data']['thumbnail']['url'] ?>" />

and this displayed the path to the thumbnail of the video. I am unable to find the right syntaxis to achieve this in Drupal 7. I want to output "image_src" and <meta property ="video" content=..." so I need and the syntax for output of the name of the converted video.
Please, give me any clue how to achieve this? Thank you!

Comments

Jorrit’s picture

Status: Active » Closed (works as designed)

The ['thumbnail'] key of each field #item contains a file id ("fid") that you can supply to file_load() to get the thumbnail. In the next version, the entire file object will be present with the video item information.

Jorrit’s picture

Issue summary: View changes

adding code