Search the Community
Showing results for tags 'video upload'.
-
Hello, I'm using prettyphoto to display pictures and I already linked it to PW. Good! Prettyphoto has the option of uploading youtube, vimeo and more video formats. I would like to have a field which accepts video. I've tried to use the field of images but it only accepts img formats. Prettyphoto works in a simple way. This would be the upload of an image: <div class="single_left"> <a href="_img/examples/image-1.jpg" rel="prettyPhoto[gal1]" title="it works"><img src="_img/examples/thumb-1_50.jpg" alt="" /></a> </div> This of a video: <div class="single"> <a href="http://vimeo.com/19880686" rel="prettyPhoto[gal1]" title="me with my friends in festival bu bu"><img src="_img/examples/thumb-6_50.jpg" alt="" /></a> </div> As you can observe the only thing that changes is the href from a url where the picture is hosted to the link given by vimeo in this example to embed in your website. Therefore there should be a field or something which lets you print this link into href. I don;t know if to use a field or some manipulation... In this moment this is the code for the list of pictures displayed with PW. It does work and I would like to create the same system for the videos if possible: <?php foreach($page->photo as $image){ echo "<div class='single'><a href='{$image->url}' rel='prettyPhoto[gal1]' title='{$image->description}'><img src='{$image->getThumb('thumbnail')}' width='50' height='50' alt='' /></a></div>"; } ?>
- 5 replies
-
- video
- video upload
-
(and 2 more)
Tagged with: