[Solved] Album: how to link back to right tumbnail page

Have a question or a suggestion about a 3rd party addon module or plugin?
Let us know here.
Post Reply
TweeMeterPeter
Forum Members
Forum Members
Posts: 25
Joined: Thu Aug 03, 2006 10:20 pm

[Solved] Album: how to link back to right tumbnail page

Post by TweeMeterPeter »

Hi Everybody,

I really would appreciate a hint on how to do the following:

I have created a gallery with multiple thumbnail pages (separate thumbnails template).
When for instance you are on thumbnail page 2 and click a thumb you get bthe big picture (of course).
I really would like the  "back to thumbnails" link to link back to the relevant thumb page (the one that holds the thumbnail of the big image just viewed).

Any ideas?

Link:
http://www.tweemeterpeter.nl/testcms/in ... eturnid=15

Cheers.

Btw: I;m running cmsms v 1.0  and album 0.8.2 because in the newer version the thumb nav (next/prev) is broken!!
Last edited by TweeMeterPeter on Mon Nov 12, 2007 11:09 pm, edited 1 time in total.
TweeMeterPeter
Forum Members
Forum Members
Posts: 25
Joined: Thu Aug 03, 2006 10:20 pm

Re: Album: how to link back to right tumbnail page

Post by TweeMeterPeter »

I think I solved it!!!!!!!!!!!!

(action.default.php)

the original code:
$albumbacklink = $this->CreateLink($id, 'default', $returnid, '', array('albumid'=>$albumid), '', true, false, '', false, $hierarchy_path.'/album-'.$albumid.'/'.$returnid);

edited code:
$albumbacklink = $this->CreateLink($id, 'default', $returnid, '', array('albumid'=>$albumid,'page'=>$page), '', true, false, '', false, $hierarchy_path.'/album-'.$albumid.'/'.$returnid);

I just added ",'page'=>$page" to the array.
It  was pure luck!!
I have a basic understanding of code (do alot actionscript), but I'm reaaly no php man (yet). Just luck that it constructs the right url now!

If anyone sees any problems in my solution  please let me know!
Whoohoo
Post Reply

Return to “Modules/Add-Ons”