Hello,
if anyone could help here withe these codes :
This is what I get in item view. When you click on the image you have a modal popup with the XL image:
I'm trying to get an item open in modal popup view when I click on the image of the item listed in tag listing. It should be opened with some basic info:
Image Title (itemTitle)
XL Image
Description (itemFullText)
This is what i have done so far in tag.php
However the image will not open in modal view. Anyone can help ?
if anyone could help here withe these codes :
This is what I get in item view. When you click on the image you have a modal popup with the XL image:
<a data-k2-modal="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>I'm trying to get an item open in modal popup view when I click on the image of the item listed in tag listing. It should be opened with some basic info:
Image Title (itemTitle)
XL Image
Description (itemFullText)
This is what i have done so far in tag.php
<a data-k2-modal="image" href="<?php echo $item->imageXLarge; ?>" title="<?php echo JText::_('K2_CLICK_TO_PREVIEW_IMAGE'); ?>">
<img src="<?php echo $item->imageGeneric; ?>" alt="<?php echo K2HelperUtilities::cleanHtml($item->title); ?>" style="width:<?php echo $item->params->get('itemImageGeneric'); ?>px; height:auto;" />
</a>However the image will not open in modal view. Anyone can help ?