Textpattern CMS support forum
You are not logged in. Register | Login | Help
- Topics: Active | Unanswered
#1 2015-05-20 11:01:19
- candyman
- Member
- From: Italy
- Registered: 2006-08-08
- Posts: 684
Article gallery workin in 4.2.0 and doesn't work anymore after upgrade
Upgrading (in locale) my old 4.2.0 TXP site to 4.5.7 release, my article gallery (you have to click on the thumbnails to change the main image above) stopped working.
Here the code:
<!--galleria_head_js template-->
<script type="text/javascript">
$(document).ready(function(){
$('.nav').css('display','none'); // hides the nav initially
$('ul.galleria').galleria({
history : false, // activates/deactivates the history object for bookmarking, back-button etc.
clickNext : false, // helper for making the image clickable.
insert : undefined, // the containing selector for our main image. If not found or undefined, galleria will create a container before the ul with the class .galleria_container (see CSS)
onImage : function(image,caption,thumb) {
// This is where the main image special effects go
// fade in the image & caption
image.css('display','none').fadeIn(1000);
caption.css('display','none').fadeIn(1000);
// shows the nav when the image is showing
$('.nav').css('display','block'); }
});
//make first li in the image list active so that the first image is displayed onLoad
$(".galleria li:first").addClass('active');
});
</script>
<!--end galleria_head_js-->
Maybe the latest jquery release in imcompatible with some instruction?
Last edited by ruud (2015-05-20 12:13:33)
Offline
#2 2015-05-20 11:51:25
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: Article gallery workin in 4.2.0 and doesn't work anymore after upgrade
After each comment you have to make a line break. Can you here in the forum begin the hole code with bc..
, so we can see how are the quotes.
Offline
#3 2015-05-20 12:20:36
- candyman
- Member
- From: Italy
- Registered: 2006-08-08
- Posts: 684
Re: Article gallery workin in 4.2.0 and doesn't work anymore after upgrade
Sorry for the bad pagination and thanks to the one that get the formatting done.
So, may some tag are deprecated after 4.2.0?
My gallery form code is:
<div class="article-content">
<txp:if_individual_article>
<div class="clearfix">
<txp:upm_article_image wraptag="ul" class="galleria" break="li" show_alt="yes" show_title="yes" />
<p class="nav"><a href="#" onclick="$.galleria.prev(); return false;">« Prec</a> | <a href="#" onclick="$.galleria.next(); return false;">Succ »</a></p>
</div>
Offline
#4 2015-05-20 12:32:35
- GugUser
- Member
- From: Quito (Ecuador)
- Registered: 2007-12-16
- Posts: 1,473
Re: Article gallery workin in 4.2.0 and doesn't work anymore after upgrade
I don’t know if <txp:upm_article_image />
still works in Textpattern 4.5.7. But, it’s no longer necessary.
Offline