Keyword

k2 bug: itemImageGallery shows when no gallery available

More
13 years 4 months ago #96486 by mcweb
Hi,

I have a problem with k2 and the item.php output. I have the up to date versions of k2 and simple image gallery pro installed.

the item.php source for the simple gallery looks like this:

 

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

 

The output for an item with NO gallery uploaded is still:

<a id="itemImageGalleryAnchor" name="itemImageGalleryAnchor"> </a>

<h2>Title</h2>

<div class="itemImageGallery"> </div>


how can I remove the h2 title and the empty itemImageGallery container when there is no gallery uploaded for a specific item? The !empty function obviously does not work here I think.

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

More
13 years 1 month ago #96487 by aap411vm
I have the same problem. Have you found a fix already?

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

More
13 years 1 month ago #96488 by mcweb
no sorry I do not have a solution. Let me know if you know something that would be great.
Maybe they have an official support somewhere else since it is a pro plugin.

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

More
13 years 1 month ago #96489 by mcweb

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

More
13 years 1 month ago #96490 by aap411vm
Thnx for the reply. Will subscribe there as well.

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


Powered by Kunena Forum