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.
Posts: 32509
arg4="return=1"
Posts: 109
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?
Posts: 109
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