how do i print out emfield youtube vid in node.tpl.php

Joined: 01/15/2008

I have emfield set up with YouTube support, and have added a couple of videos to my node. With a vanilla node.tpl that does print $content, the videos show up. But I want to do custom layout and place the videos in precise spots, and I can;t figure out how to do it. Using devel, I have picked through the $node obj, and it looks like the embed code i not in there, but is likely pieced together by the module on page build. How the heck can I print the video in the right spot in my layout?

Joined: 09/09/2008
Views, Contemplate, or an Input Filter

The typical way to handle a CCK field is to use a "View" to generate the necessary code. Alternatively, you could use Contemplate to do something similar. With either of these approaches you'd probably have your video either before or after the node's body.

There's a discussion at http://learnbythedrop.com/drop/35 on handling YouTube via a filter. You might find this to be useful. Using a filter you don't need to have the field.

Hope this helps,
Curt

Joined: 07/13/2011
The typical way to h

The typical way to handle a CCK field is to use a "View" to generate the necessary code. Alternatively, you could use Contemplate to do something similar. With either of these approaches you'd probably have your video either before or after the node's body.
There's a discussion at http://learnbythedrop.com/drop/35 on handling YouTube via a filter. You might find this to be useful. Using a filter you don't need to have the field.
Hope this helps,
Curt
frank verdin