Hi
In category view when I click on image it goes to details view of item,
I'd like that when I click on image, it opens in modal box like what happens in details view.
I add this code to category_itm.php
<span class="itemImage">
<a class="modal" rel="{handler: 'image'}" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>">
<img src="<?php echo $this->item->image; ?>" alt="<?php if(!empty($this->item->image_caption)) echo K2HelperUtilities::cleanHtml($this->item->image_caption); else echo K2HelperUtilities::cleanHtml($this->item->title); ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
</a>
</span>
but it doesn't make image to pop up, because it doesn't add the necessary javascript and css file,
I don't know how can I do that?