Link to first / last item in album

brxnd

Joined: 2007-05-02
Posts: 3
Posted: Wed, 2007-05-02 15:32

Hi,

i just searched the documentation and the forum, but i haven't found any straight answer to my question.

Here it is: How do i set a link to the first or last image in my album?
(maybe this is a stupid question - but please be kind with me since i'm not a code-guy) ;-)

 
brxnd

Joined: 2007-05-02
Posts: 3
Posted: Wed, 2007-05-02 17:24
Quote:
<a href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$block.core.LoadPeers.peerCount`"}">last image</a>

well, this, as far as i could have figured it out, does not work - this link gets me somewhere in the middle, like image no. 17 of 38 images. how come?
where to find tht proper id of the very last image, when the album is sorted manually?

 
floridave
floridave's picture

Joined: 2003-12-22
Posts: 25957
Posted: Wed, 2007-05-02 19:57

{g->url params=$navigator.last.urlParams} might work. Not tested, Taken form the core Navigator.tpl

Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team

 
brxnd

Joined: 2007-05-02
Posts: 3
Posted: Thu, 2007-05-03 08:23
Quote:
{g->url params=$navigator.last.urlParams}

Thanks Dave. I thought of that myself, too, but this doesn't work. At least not when used like this:

Quote:
<a href="{g->url params=$navigator.last.urlParams}">333</a>

That brings me to the album-selection (main.php).

Any other suggestions?