Hi all,
I’m working on
http://meubelrestauratie.nu/fotogalerij.html
I have setup the Gallery addon with the Galleriffic plugin and they work great. But I don’t know how I can go to the next or previous Album when I am in a certain album.
If u take a look at
http://meubelrestauratie.nu/fotogalerij.html?galAlbum=15 then you will see 2 buttons on the top right and they are used to skip pictures forward and backward, I would like to have buttons to navigate to the next and previous albums.
Can anyone point me in the direction I need to go.
I want to modify the galleriffic.js at the render navigation part something like this
if (this.renderNavControls) {
this.$controlsContainer
.append('<div class="nav-controls"> '+this.previousAlbum+' <a class="prev" rel="history" title="'+this.prevLinkText+'">'+this.prevLinkText+'</a> | <a class="next" rel="history" title="'+this.nextLinkText+'">'+this.nextLinkText+'</a> '+this.nextAlbum+' </div>')
.find('div.nav-controls a')
.click(function(e) {
gallery.clickHandler(e, this);
});
}
So I can get it to work when I can send the correct numbers for the albums in 1. this.previousAlbum and 2. this.prevLinkText
[[!Gallery?
&toPlaceholder=`Gallery`
&previousAlbum=``
&nextAlbum=``
]]
I have tried getting something like [[*id]] in it, but here i’m really clueless
All help appreciated!