Closed (fixed)
Project:
Video CCK
Version:
5.x-1.x-dev
Component:
Documentation
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
23 May 2007 at 15:47 UTC
Updated:
5 Jun 2007 at 18:47 UTC
I've been playing around with the Video CCK module, but I can't figure out how to get the video to display. I've created node-video.tpl.php, but I don't know what to put in there to display the video, and I couldn't find any documentation anywhere.
Looking through the code, I see that there's a bunch of theme functions, but if I need to call them or what.
Right now, I just have
<?php print $node->field_video_link[0]['embed'] ?>
Which of course just prints the link instead of embedding it.
I see the
function theme_video_cck_video($field, $item, $formatter, $node) {
But if I have to call that from my template file, I don't know what $formatter is...
I'm sure it's not too hard, it's just a matter of understanding how to do it. Thanks for this great module and your help.
Comments
Comment #1
jody lynnprint $node->field_video_link[0]['view']Comment #2
bennybobw commentedI put that in my tpl.php and it doesn't put out anything. The cck field doesn't have that field:
Comment #3
bennybobw commentedFixed the problem-- I had an older version of CCK. Make sure yours is updated!
Comment #4
Jurgen8en commentedYoutube movies are enabled in CCK-video configuration. Without API
Embed code or Video URL:
http://www.youtube.com/v/k8BUIUVjstg
In my contemplate I wrote:
In the body/teaser variables, this is showed:
No video code is displayed in the instance of the content type.
Why?
Great thanks.