Hi, Ive been trying to get K2 item images to use the sig pro plugin in the same way that the image gallery does. This is so that I get consistency when viewing the item image and the gallery image.By default the layout item.php uses <a class="modal" ... for showing the enlarged item image.I changed this to use <a class="sig-link highslide" and this worked very nicely for items that also had image galleries attached. The item image then would display in the same way that the gallery images do when enlarged and was even integrated into the slideshow presentation.However on items without an image gallery the sigpro plugin is not enabled and it will not work.Can anyone advise me how to get the sigpro plugin enabled for K2 items that DONT have an image gallery , so that it can be used to display the single K2 item image, in all items ?thankslyntonok I found a way to get this to work I inserted an empty gallery tag if one is not present already.This was enough to get sigpro to add the required functions even though there is nogallery present.So now I have the item image popup and the gallery popups using sigpro as I wanted. :)Even better when a gallery IS present the slideshow will include the item image as well !!!In the components/com_k2/models/item.php file around line 161
// begin hack if ( !isset($item->gallery) ) { $item->gallery='{gallery},{/gallery}'; }// end of hack. $item->text=$item->gallery; $dispatcher->trigger ( 'onPrepareContent', array (&$item, &$params, $limitstart ) ); $item->gallery=$item->text;and in the layout item.phpchanged the image poup link to match what the gallery would generate.<a class="sig-link highslide" href="<?php echo $this->item->imageXLarge; ?>" .... </a>
// begin hack if ( !isset($item->gallery) ) { $item->gallery='{gallery},{/gallery}'; }// end of hack. $item->text=$item->gallery; $dispatcher->trigger ( 'onPrepareContent', array (&$item, &$params, $limitstart ) ); $item->gallery=$item->text;and in the layout item.phpchanged the image poup link to match what the gallery would generate.<a class="sig-link highslide" href="<?php echo $this->item->imageXLarge; ?>" .... </a>