+ Reply to Thread
Results 1 to 2 of 2

Thread: Display a youtube video out of photo preview

  1. #1
    Senior Member
    Join Date
    Aug 2014
    Posts
    163

    Display a youtube video out of photo preview

    Hi, I'd like to get the code to display youtube videos in a different place than the videos.

    Which code should I please use? Thank you in advance

  2. #2
    Senior Member
    Join Date
    Aug 2014
    Posts
    163
    <iframe width="" height="" src="{if $photos.0.Type == 'video' && $photos.0.Original == 'youtube'}{$photos.0.href}{/if}" frameborder="0" allowfullscreen></iframe>
    <video id="player" class="hide" controls>
    <source src="" type="video/mp4">
    </video>

    When using the code alone, the video doesn't come out.
    How to bring it out with a foreach or ?

+ Reply to Thread