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.
Hello,
I have video field, that I would like to output the url using template.php and the page.tpl.php
I have added this line to the themename_preprocess_page function -
$vars['fb_meta'] = '<link rel="video_src" href="'.$vars['node']->field_fv_url[0]['value'].'"/>'."\n".
'<meta name="video_type" content="application/x-shockwave-flash" />'."\n".
'<meta name="video_height" content="480" />'."\n".
'<meta name="video_width" content="650" />'."\n";
I added this line of code to the page.tpl.php file
<?php if(isset($fb_meta)): ?>
<?php print $fb_meta; ?>
<?php endif; ?>
The output on the page
<link rel="video_src" href=""/>
<meta name="video_type" content="application/x-shockwave-flash" />
<meta name="video_height" content="480" />
<meta name="video_width" content="650" />
No url in href is there someone who can help me with this or direct me to where I can answer thanks a million!
naeluh
Comments
Comment #1
quicksketchI do not provide support for custom theming or coding in the FileField queue.