I have added a Lightbox2 link to the video node body manually
I would like to add a field for the video content ty[pe that will automate the Lightbox2 link
something like
<?php echo '<a rel="lightvideo" href="' . $node->vidfile . ',flv">Full screen</a>'; ?>
I have tried to test this using devel execute php code but I don't get any value (or error either) for $node->vidfile
checking Dev Render for the node I see:
vidfile
http://spvid.decibelplaces.com/files/videos/DrivetoBasket4.wmv
Comments
Comment #1
decibel.places commentedfigured it out - put this code in page.tpl.php of theme
Comment #2
decibel.places commentedThe .flv video file did not work reliably in the lightbox, so I changed it to display the original video file (in this case, a .wmv file)
Also removed a couple of unnecessary lines: