How to create a back to gallery button on module pages?

saul11

Joined: 2005-10-04
Posts: 109
Posted: Sun, 2006-01-15 11:25

What do I make the URL for a link to return to the gallery page where the user clicked on the module/block? I rather don't go for javascript (history.go(-1)) but for a gallery link. I have href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$theme.parents[1].id`" arg3="highlightId=`$theme.item.id`"}" for a link on my photo pages to return to the parent album, but I didn't succeed in modifying this for my current need.

 
valiant

Joined: 2003-01-04
Posts: 32509
Posted: Sun, 2006-01-15 13:54

arg4="return=1"

 
saul11

Joined: 2005-10-04
Posts: 109
Posted: Sun, 2006-01-15 15:58

href="{g->url arg1="view=core.ShowItem" arg2="itemId=`$theme.parents[1].id`" arg3="highlightId=`$theme.item.id`"} arg4="return=1"" didn't work either :( All bring me back to the first page of my gallery. I've noticed that $theme.parents[1].id is unknown on the searchpage, so maybe that's what's wrong. Any ideas?

 
saul11

Joined: 2005-10-04
Posts: 109
Posted: Mon, 2006-12-04 14:16

I was trying to get this working for the checkout module.
Now I was trying again and with some help from Bharat I came up with http://gallery.menalto.com/node/50345#comment-211704