Problems, need help? Have a tip or advice? Post it here.
2 posts Page 1 of 1
Hi,

I'm trying show youtube video in lightbox with the help of CouchCMS, But for some reason its not working perfectly.
Following is the code which I have used for the same:

<cms:show_repeatable 'event_gallery_videos'>
<div class="col-md-3" style="padding-top:20px;">
<a class="example-image-link" href='<cms:show gallery_video/>' data-lightbox="example-set" data-toggle="lightbox" data-gallery="youtubevideos" data-title="<cms:show gallery_video_name/>">
<img class="example-image" src="<cms:show gallery_video_thumbnail/>" alt=""/>
</a>
</div>
</cms:show_repeatable>


Can any one give me any advise on how to make it work?

Thanks in advance!!!
Hi,

This is a standard debug technique in Couch -
begin with plain HTML (i.e. no Couch tags); so, in your case, begin with markup for 3-4 videos that show up correctly in the lightbox (this is important - this static code should work exactly how we'd want the Couchified version to work eventually).
Copy this markup somewhere for reference in the next step.

Next add the desired Couch tags.
Since Couch does not introduce any markup of its own, we'd expect the generated output to be identical to the static we saved above (except, of course, for the data e.g. links etc. that we injected).

So now compare the two side-by-side and you should be able to spot if anything does not match.
Try to rectify your code till you get identical output and that should fix the issue.

Hope this helps.
2 posts Page 1 of 1