- Posts: 9
COMMUNITY FORUM
- Forum
- K2 Community Forum
- English K2 Community
- k2 bug: itemImageGallery shows when no gallery available
k2 bug: itemImageGallery shows when no gallery available
- mcweb
-
Topic Author
- Offline
- New Member
Less
More
14 years 6 days ago #96486
by mcweb
k2 bug: itemImageGallery shows when no gallery available was created 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.
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.
- aap411vm
-
- Offline
- New Member
Less
More
- Posts: 4
13 years 8 months ago #96487
by aap411vm
Replied by aap411vm on topic k2 bug: itemImageGallery shows when no gallery available
I have the same problem. Have you found a fix already?
Please Log in or Create an account to join the conversation.
- mcweb
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 9
13 years 8 months ago #96488
by mcweb
Replied by mcweb on topic k2 bug: itemImageGallery shows when no gallery available
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.
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.
- mcweb
-
Topic Author
- Offline
- New Member
Less
More
- Posts: 9
13 years 8 months ago #96489
by mcweb
Replied by mcweb on topic k2 bug: itemImageGallery shows when no gallery available
I also asked for help here forum.joomlaworks.gr/simple-image-gallery-pro-(plugin)/k2-items-title-tag-shows-on-empty-sig-pro-gallery/
maybe you want so subscribe that thread
maybe you want so subscribe that thread
Please Log in or Create an account to join the conversation.
- aap411vm
-
- Offline
- New Member
Less
More
- Posts: 4
13 years 8 months ago #96490
by aap411vm
Replied by aap411vm on topic k2 bug: itemImageGallery shows when no gallery available
Thnx for the reply. Will subscribe there as well.
Please Log in or Create an account to join the conversation.
- Forum
- K2 Community Forum
- English K2 Community
- k2 bug: itemImageGallery shows when no gallery available