I added the [video] tag into the content template for the body so the videos would automatically be shown, but no videos are shown, just [video]. What can I do to actually show them? And should I just be using the file attach field?

Comments

Kripsy’s picture

Use <?php print flashvideo_get_video($node); ?> in contemplate to display the video you uploaded to that node in the node.

mrgoltra’s picture

how about if you want to enter this tag on your node template?

i tried using this, but it doesn't work. any suggestions?

if (flashvideo_get_video($node) && !teaser):
print flashvideo_get_video($node);
endif;

thanks

mark

giorgio79’s picture

Thanks this is great stuff.

Was looking for it a while, this way I can hack directly my node tpl php files, and not just rely on the body field.

Cheers,
G

travist’s picture

Status: Active » Fixed
Anonymous’s picture

Status: Fixed » Closed (fixed)

Automatically closed -- issue fixed for two weeks with no activity.

Sophia’s picture

@mrgoltra:

try this, copy your node.tpl.php file and name the new file node-video.tpl.php (if your file type for video is "video").

Find: <?php print $content?>

Add one line below that:

  <?php if (flashvideo_get_video($node) && !$teaser): ?>
    <?php print flashvideo_get_video($node) ?>
  <?php endif; ?>

Now you will see the video in the full mode, and not the teaser.

Oops, I just realized you wanted to do this in Contemplate. Well, really, I like this method better but whatever works for you :)