Keyword
Please note that official support for commercial extensions & templates is provided in the Subscriber Help Desk.
Support requests should ONLY be directed there and require an active subscription plan.
This forum board is to be used for archive purposes and knowledge exchange ONLY.

K2 Category_item display first image from the gallery

  • UserNet
  • UserNet's Avatar Topic Author
  • Offline
  • New Member
More
13 years 2 weeks ago #45114 by UserNet
How to displaying the first image from the gallery in category_item view

Hi, help me please to change this part of a code,
/my_site.com/components/com_k2/templates/default/category_item.php Around Line 233
<?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; ?>

I cannot understand as it to make, my knowledge is not enough. I want to display only the first picture from the loaded gallery in K2 - Category_item view

Thanks!
Attachments:

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


Powered by Kunena Forum