Closed (won't fix)
Project:
FileField
Version:
6.x-3.9
Component:
Code
Priority:
Critical
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
20 Apr 2011 at 19:13 UTC
Updated:
27 Apr 2011 at 22:57 UTC
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.