Hi
I'm creating a youtube gallery section on site that is responsive but I can't get thumbnails to show. I tried previously with the iframe method but could not get them to load in a modal pop up box when clicked as they would just play where they were.
.
I am now trying a youtubemodal plug in on a list of videos i get from this code which lets me enter the url in admin:
I then show a list of them using this code. Looks ugly but been hacking away for ages.
What i want to do is get the youtube video id using php and put that into the img src somehow.
Unless anyone knows a better way of making a youtube video gallery!
I'm creating a youtube gallery section on site that is responsive but I can't get thumbnails to show. I tried previously with the iframe method but could not get them to load in a modal pop up box when clicked as they would just play where they were.
.
I am now trying a youtubemodal plug in on a list of videos i get from this code which lets me enter the url in admin:
- Code: Select all
<cms:template clonable='1' gallery='1' >
<cms:editable name='videocode' label='Video code' type='textarea' no_xss_check='1' ></cms:editable>
</cms:template>
I then show a list of them using this code. Looks ugly but been hacking away for ages.
- Code: Select all
<div id="row">
<ul class="row">
<cms:pages masterpage='video.php' include_subfolders='0' >
<cms:set listo="<li class='col-lg-3 col-md-3 col-sm-3 col-xs-4 thumbnail'>" />
<cms:set listc="</li>" />
<cms:embed code=listo />
<a class="popup-youtube" href='<cms:show videocode/>'><img src=""'</a>
<cms:embed code=listc />
</cms:pages>
</ul>
</div>
What i want to do is get the youtube video id using php and put that into the img src somehow.
Unless anyone knows a better way of making a youtube video gallery!