Keyword

Custom template -> videolink to open video in a lightbox

More
13 years 4 months ago #97058 by maos
Hi everyone,

 

nice to be here ;) I'm a big fan of the k2 extension for joomla!!! At the moment I get rid of a problem:

I have installed the k2 (including the allvideo-plugin) at my joomla(1.5.23). I build my own template and try to integrate a video-link (text) in the "category.php"/"category_item.php" for each item, to open the lightbox and display the video... -> without success

 

e.g.: I tried to work out the right code for the embed-option:

&lt;a class="modal" href="www.youtube.com/watch?v=FFottu8A3e8" rel="{handler:'iframe',size:{x:300,y:300}}">Video</a>


or I tried to enter the video-item-link direct in the template-php-file:

&lt;a class="avLightbox" href="&lt;?php echo $output-&gt;lightboxLink; ?&gt;" title="&lt;?php echo JText::_('Click to view video in a lightbox popup'); ?&gt;"&lt;?php if(!$output-&gt;downloadLink &amp;&amp; !$output-&gt;embedLink) echo ' style="margin:0;padding:0;border:none;"'; ?&gt;&gt;&lt;?php echo JText::_('Dim lights'); ?&gt;&lt;/a&gt;


 

Can someone please give me a hint how to do this?

 

I'm afraid my Englisch is a bit rusty...

 

greetz

 

maos

Please Log in or Create an account to join the conversation.


Powered by Kunena Forum