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.

Make K2 category image use SIGPRO and show in gallery?

  • Albert
  • Albert's Avatar Topic Author
  • Offline
  • Senior Member
More
13 years 2 months ago #43932 by Albert
In K2 detail view there is 1 category image, and several gallery images.  Both use different lighbox effects.  Is there a way, for this example, to make all show up in "PrettyPhoto" effect in a gallery?

EXAMPLE: 1 cateory image; 3 gallery images; prettyPhoto box effect.

I was able to make the category image show in prettyphoto, but it doesn't show the 3 gallery images as well.  This is because K2 doesn't recognize the php
rel="<?php echo $relName; ?>[gallery<?php echo $gal_id; ?>]"
I changed to
rel="prettyPhoto[gallery<?php echo $gal_id; ?>]"

So is there a way to make K2 recognize $gal_id?
		  	<a class="sigProLink<?php echo $extraClass; ?>"  rel="prettyPhoto[gallery<?php echo $gal_id; ?>]" 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 $this->item->image_caption; else echo $this->item->title; ?>" style="width:<?php echo $this->item->imageWidth; ?>px; height:auto;" />
		  	</a>

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


Powered by Kunena Forum