- Posts: 58
COMMUNITY FORUM
- Forum
- Commercial Joomla Extensions & Templates
- Simple Image Gallery PRO
- template "galleria" without popup
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.
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.
template "galleria" without popup
- Johann Scharfetter
- Topic Author
- Offline
- Senior Member
Less
More
12 years 4 months ago - 12 years 4 months ago #49907
by Johann Scharfetter
template "galleria" without popup was created by Johann Scharfetter
Layout template for image galleries: "Galleria"
How can I prevent open popup using layoout template "Galleria"?
My website: www.atelier-sus.at/de/ueber-atelier-sus
I guess I have to manipulate the code. Which code do I have do delete?
Thanks for your help!!!
How can I prevent open popup using layoout template "Galleria"?
My website: www.atelier-sus.at/de/ueber-atelier-sus
I guess I have to manipulate the code. Which code do I have do delete?
defined('_JEXEC') or die('Restricted access');
$document->addScript('https://ajax.googleapis.com/ajax/libs/jquery/1/jquery.min.js');
$document->addScript($pluginLivePath.'/tmpl/Galleria/js/behaviour.js');
?>
<div id="sigProGalleria<?php echo $gal_id; ?>" class="sigProContainer sigProGalleriaContainer">
<div class="sigProGalleriaPlaceholderContainer">
<div class="sigProGalleriaPlaceholder">
<a href="#" class="sigProGalleriaTargetLink<?php echo $extraClass; ?>" rel="<?php echo $relName; ?>[gallery<?php echo $gal_id; ?>]" title="<?php echo $gallery[0]->captionDescription.$gallery[0]->downloadLink.$modulePosition; ?>" target="_blank">
<img class="sigProGalleriaTargetImg" src="<?php echo $gallery[0]->sourceImageFilePath; ?>" alt="<?php echo JText::_('JW_SIGP_LABELS_08').' '.$gallery[0]->filename; ?>" title="<?php echo JText::_('JW_SIGP_LABELS_08').' '.$gallery[0]->filename; ?>" />
</a>
<p class="sigProGalleriaTargetTitle"><?php echo $gallery[0]->captionTitle; ?></p>
</div>
</div>
<ul id="sigProId<?php echo $gal_id; ?>" class="sigProGalleria<?php echo ' sigProGalleria'.$singleThumbClass; ?>">
<?php foreach($gallery as $count=>$photo): ?>
<li class="sigProThumb"<?php if($gal_singlethumbmode && $count>0) echo ' style="display:none !important;"'; ?>>
<span class="sigProLinkOuterWrapper">
<span class="sigProLinkWrapper">
<a href="<?php echo $photo->sourceImageFilePath; ?>" class="sigProGalleriaLink sigProLink<?php if($count==0) echo ' sigProLinkSelected'; ?>" style="width:<?php echo $photo->width; ?>px;height:<?php echo $photo->height; ?>px;" title="<?php echo $photo->captionDescription.$photo->downloadLink.$modulePosition; ?>" target="_blank">
<?php if(($gal_singlethumbmode && $count==0) || !$gal_singlethumbmode): ?>
<img class="sigProImg" src="<?php echo $transparent; ?>" alt="<?php echo JText::_('JW_SIGP_LABELS_08').' '.$photo->filename; ?>" title="<?php echo JText::_('JW_SIGP_LABELS_08').' '.$photo->filename; ?>" style="width:<?php echo $photo->width; ?>px;height:<?php echo $photo->height; ?>px;background-image:url(<?php echo $photo->thumbImageFilePath; ?>);" />
<?php endif; ?>
<?php if($gal_captions): ?>
<span class="sigProPseudoCaption"><b><?php echo $photo->captionTitle; ?></b></span>
<span class="sigProCaption" title="<?php echo $photo->captionTitle; ?>"><?php echo $photo->captionTitle; ?></span>
<?php endif; ?>
</a>
</span>
</span>
</li>
<?php endforeach; ?>
<li class="sigProClear"> </li>
</ul>
</div>
<?php if(isset($flickrSetUrl)): ?>
<a class="sigProFlickrSetLink" title="<?php echo $flickrSetTitle; ?>" target="_blank" href="<?php echo $flickrSetUrl; ?>"><?php echo JText::_('JW_SIGP_PLG_FLICKRSET'); ?></a>
<?php endif; ?>
<?php if($itemPrintURL): ?>
<div class="sigProPrintMessage">
<?php echo JText::_('JW_SIGP_PLG_PRINT_MESSAGE'); ?>:
<a title="<?php echo $row->title; ?>" href="<?php echo $itemPrintURL; ?>"><?php echo $itemPrintURL; ?></a>
</div>
<?php endif; ?>
Thanks for your help!!!
Please Log in or Create an account to join the conversation.
- Katia
- Offline
- Platinum Member
Less
More
- Posts: 4696
12 years 4 months ago - 12 years 4 months ago #49908
by Katia
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Katia on topic Re: template "galleria" without popup
You should override your template. Take a look at the documentation for more about overriding templates.
What you should modify is change this in plugins\content\tmpl Galleria\default.php
<a href="<?php echo $gallery[0]->sourceImageFilePath; ?>" class="sigProGalleriaTargetLink<?php echo $extraClass; ?>" rel="<?php echo $relName; ?>[gallery<?php echo $gal_id; ?>]" title="<?php echo $gallery[0]->captionDescription.$gallery[0]->downloadLink.$modulePosition; ?>" target="_blank">
<img class="sigProGalleriaTargetImg" src="<?php echo $gallery[0]->sourceImageFilePath; ?>" alt="<?php echo JText::_('JW_SIGP_LABELS_08').' '.$gallery[0]->filename; ?>" title="<?php echo JText::_('JW_SIGP_LABELS_08').' '.$gallery[0]->filename; ?>" />
</a>
to this:
<a href="#" class="sigProGalleriaTargetLink" rel="<?php echo $relName; ?>[gallery<?php echo $gal_id; ?>]" title="<?php echo $gallery[0]->captionDescription.$gallery[0]->downloadLink.$modulePosition; ?>" target="_blank">
<img class="sigProGalleriaTargetImg" src="<?php echo $gallery[0]->sourceImageFilePath; ?>" alt="<?php echo JText::_('JW_SIGP_LABELS_08').' '.$gallery[0]->filename; ?>" title="<?php echo JText::_('JW_SIGP_LABELS_08').' '.$gallery[0]->filename; ?>" />
</a>
If this doesn't work, remove
rel="<?php echo $relName; ?>[gallery<?php echo $gal_id; ?>]"
too.
What you should modify is change this in plugins\content\tmpl Galleria\default.php
<a href="<?php echo $gallery[0]->sourceImageFilePath; ?>" class="sigProGalleriaTargetLink<?php echo $extraClass; ?>" rel="<?php echo $relName; ?>[gallery<?php echo $gal_id; ?>]" title="<?php echo $gallery[0]->captionDescription.$gallery[0]->downloadLink.$modulePosition; ?>" target="_blank">
<img class="sigProGalleriaTargetImg" src="<?php echo $gallery[0]->sourceImageFilePath; ?>" alt="<?php echo JText::_('JW_SIGP_LABELS_08').' '.$gallery[0]->filename; ?>" title="<?php echo JText::_('JW_SIGP_LABELS_08').' '.$gallery[0]->filename; ?>" />
</a>
to this:
<a href="#" class="sigProGalleriaTargetLink" rel="<?php echo $relName; ?>[gallery<?php echo $gal_id; ?>]" title="<?php echo $gallery[0]->captionDescription.$gallery[0]->downloadLink.$modulePosition; ?>" target="_blank">
<img class="sigProGalleriaTargetImg" src="<?php echo $gallery[0]->sourceImageFilePath; ?>" alt="<?php echo JText::_('JW_SIGP_LABELS_08').' '.$gallery[0]->filename; ?>" title="<?php echo JText::_('JW_SIGP_LABELS_08').' '.$gallery[0]->filename; ?>" />
</a>
If this doesn't work, remove
rel="<?php echo $relName; ?>[gallery<?php echo $gal_id; ?>]"
too.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Johann Scharfetter
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 58
12 years 4 months ago - 12 years 4 months ago #49909
by Johann Scharfetter
Replied by Johann Scharfetter on topic Re: template "galleria" without popup
Now it is working:
I did the changes you indicated. I had to remove also this code: rel="<?php echo $relName; ?>[gallery<?php echo $gal_id; ?>]"
But it was still not perfect. It opend the same page in a new window. So I had to add:
and I added to the css file this code to take away the pointer
I did the changes you indicated. I had to remove also this code: rel="<?php echo $relName; ?>[gallery<?php echo $gal_id; ?>]"
But it was still not perfect. It opend the same page in a new window. So I had to add:
target="_self"
and I added to the css file this code to take away the pointer
a.sigProGalleriaTargetLink img { display:block; width:100%; height:auto; cursor: default; }
Please Log in or Create an account to join the conversation.
- Shannon Briggs
- Offline
- New Member
Less
More
- Posts: 10
12 years 4 months ago #49910
by Shannon Briggs
Replied by Shannon Briggs on topic Re: template "galleria" without popup
I am after the same solution, but when I tried the suggestions above I noticed that it doesn't entirely work:
When I click on one of the thumbnails, the href of the main image changes from "#" to the full url again.
any ideas?
footnote:
I tried removing the link from the code alltogether, but that also breaks the links of each of the thumbnails.
When I click on one of the thumbnails, the href of the main image changes from "#" to the full url again.
any ideas?
footnote:
I tried removing the link from the code alltogether, but that also breaks the links of each of the thumbnails.
Please Log in or Create an account to join the conversation.
- Katia
- Offline
- Platinum Member
Less
More
- Posts: 4696
12 years 4 months ago #49911
by Katia
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Katia on topic Re: template "galleria" without popup
Only remove this part:
and nothing else. This will stop the popup when you click the main image.
rel="<?php echo $relName; ?>[gallery<?php echo $gal_id; ?>]"
and nothing else. This will stop the popup when you click the main image.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- Johann Scharfetter
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 58
12 years 4 months ago #49912
by Johann Scharfetter
Replied by Johann Scharfetter on topic Re: template "galleria" without popup
When I remove only tis code:image is opened in new tab.
rel="<?php echo $relName; ?>[gallery<?php echo $gal_id; ?>]"
Please Log in or Create an account to join the conversation.
- Johann Scharfetter
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 58
12 years 4 months ago - 12 years 4 months ago #49913
by Johann Scharfetter
Replied by Johann Scharfetter on topic Re: template "galleria" without popup
Hello ShanDB,
I observed the same issue as you.
I observed the same issue as you.
Let's see if someone can help usWhen I click on one of the thumbnails, the href of the main image changes from "#" to the full url again.
Please Log in or Create an account to join the conversation.
- Katia
- Offline
- Platinum Member
Less
More
- Posts: 4696
12 years 4 months ago #49914
by Katia
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Replied by Katia on topic Re: template "galleria" without popup
This means that you have a javascript error in your template.
JoomlaWorks Support Team
---
Please search the forum before posting a new topic :)
Please Log in or Create an account to join the conversation.
- adamhammad
- Offline
- New Member
Less
More
- Posts: 1
12 years 4 months ago #49915
by adamhammad
Replied by adamhammad on topic Re: template "galleria" without popup
Was having the same issue, then added onclick="return false" so that this line of code
<a href="#" class="sigProGalleriaTargetLink" title="<?php echo $gallery[0]->captionDescription.$gallery[0]->downloadLink.$modulePosition; ?>" target="_self">
now looks like this
<a href="#" class="sigProGalleriaTargetLink" onclick="return false" title="<?php echo $gallery[0]->captionDescription.$gallery[0]->downloadLink.$modulePosition; ?>" target="_self">
<a href="#" class="sigProGalleriaTargetLink" title="<?php echo $gallery[0]->captionDescription.$gallery[0]->downloadLink.$modulePosition; ?>" target="_self">
now looks like this
<a href="#" class="sigProGalleriaTargetLink" onclick="return false" title="<?php echo $gallery[0]->captionDescription.$gallery[0]->downloadLink.$modulePosition; ?>" target="_self">
Please Log in or Create an account to join the conversation.
- Johann Scharfetter
- Topic Author
- Offline
- Senior Member
Less
More
- Posts: 58
12 years 4 months ago - 12 years 4 months ago #49916
by Johann Scharfetter
Replied by Johann Scharfetter on topic Re: template "galleria" without popup
Hello adamhammad and Katia,
Thank you for your posts.
Katia, I do not know how to fix a javascript error so I had to try adamhammads way.
It worked! Thank you both! :)
Thank you for your posts.
Katia, I do not know how to fix a javascript error so I had to try adamhammads way.
It worked! Thank you both! :)
Please Log in or Create an account to join the conversation.
- Forum
- Commercial Joomla Extensions & Templates
- Simple Image Gallery PRO
- template "galleria" without popup