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 + SIG Pro image problem

  • jansu82
  • jansu82's Avatar Topic Author
  • Offline
  • New Member
More
13 years 8 months ago #39837 by jansu82
K2 + SIG Pro image problem was created by jansu82
Hi. I didn´t find solution for this. I use Latest K2 and Latest SIG PRO.

In item view i want to show pics what is in the gallery only but when the gallery is empty i want to show picture what i have downloaded to K2..

Here is code:
    <?php if($this->item->params->get('itemImage') && !empty($this->item->image)): ?>
	  <!-- Item Image -->
	  <div class="itemImageBlock">
		  	     <?php if($this->item->params->get('itemImageGallery') && !empty($this->item->gallery)): ?>
  <!-- Item image gallery -->
  <a name="itemImageGalleryAnchor" id="itemImageGalleryAnchor"></a>
  <div class="itemImageGallery">
	  <h3><?php echo JText::_('Image Gallery'); ?></h3>
	  <?php echo $this->item->gallery; ?>
  </div>
  <?php endif; ?>

  <?php if($this->item->params->get('itemImage') && !empty($this->item->image)): ?>
	  <!-- Item Image -->
	  <div class="itemImageBlock">
		  <span class="itemImage">
		  	<a class="modal" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('Klikkaa suuremmaksi'); ?>">
		  		<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:auto; height:auto;" />
		  	</a>
		  </span>

	  </div>
	  <?php endif; ?>

It shows both now and of course only K2 picture when gallery is empty.. So how to make it that when there is pics in SIGPro gallery it doesn´t show K2 image..?  :'(
Can anyone help me with this...?  :'(

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

  • jansu82
  • jansu82's Avatar Topic Author
  • Offline
  • New Member
More
13 years 8 months ago #39838 by jansu82
Replied by jansu82 on topic Re: K2 + SIG Pro image problem
I manage to make that work with this code:
   <?php if($this->item->params->get('itemImageGallery') && !empty($this->item->gallery)): ?>
	  <!-- Item Image -->
	  <div class="itemImageBlock">
		  	     <?php if($this->item->params->get('itemImageGallery') && !empty($this->item->gallery)): ?>
  <!-- Item image gallery -->
  <a name="itemImageGalleryAnchor" id="itemImageGalleryAnchor"></a>
  <div class="itemImageGallery">
	  <h3><?php echo JText::_('Image Gallery'); ?></h3>
	  <?php echo $this->item->gallery; ?>
  </div>
  <?php endif; ?>
  
  <?php else: ?>

		  <span class="itemImage">
		  	<a class="modal" href="<?php echo $this->item->imageXLarge; ?>" title="<?php echo JText::_('Klikkaa suuremmaksi'); ?>">
		  		<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:auto; height:auto;" />
		  	</a>
		  </span>

	  </div>

can someone say that is this ok, or does it make some security issue or something like that..?
I´m not coder, i just try things..  ;D ;D

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

  • jansu82
  • jansu82's Avatar Topic Author
  • Offline
  • New Member
More
13 years 8 months ago #39839 by jansu82
Replied by jansu82 on topic Re: K2 + SIG Pro image problem
Anyone ??? ??? ???

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

More
13 years 8 months ago #39840 by Katia
Replied by Katia on topic Re: K2 + SIG Pro image problem
Please provide us a link to your site.

JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)

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


Powered by Kunena Forum