Closed (works as designed)
Project:
Video
Version:
7.x-2.2-beta5
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Oct 2011 at 06:22 UTC
Updated:
23 May 2012 at 19:50 UTC
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
Comment #1
Jorrit commentedThe ['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.Comment #1.0
Jorrit commentedadding code