Hi there,
I want to display image gallery from K2 item to Category item listing page.
I have enable the “Image gallery” option at “Item view options in category listings” in order to show the Gallery to each item of K2.
Your code is:
<?php if($this->item->params->get('catItemImageGallery') && !empty($this->item->gallery)): ?>
<!-- Item image gallery -->
<div class="catItemImageGallery">
<h4><?php echo JText::_('K2_IMAGE_GALLERY'); ?></h4>
<?php echo $this->item->gallery; ?>
</div>
<?php endif; ?>
The first part of your if expression isn’t working, but that’s no problem (I’m using an override k2 template just for this page) i’ve removed it to display the gallery either if I have it enabled to category or not…
My problem is that the gallery is not parsed from the “Simple Image Gallery Pro” plugin as it should be (if I open the item it is parsed correctly).
I do get back the “plugin code” {gallery}image gallery name{/gallery} thow..
Obviously I have to add something else to my code beside the above code, in order the gallery to be parsed from the plugin.. but what is that?
Thank you in advance…