[SOLVED] linking the parent gallery in sidebar.tpl

dsawchuk

Joined: 2005-01-22
Posts: 84
Posted: Tue, 2005-04-12 01:01

I'm trying to change the sidebar.tpl file so that the parent album is linked in the 'peer items' portion of the layout. I know that I could just set the 'navigation to parents in sidebar' pice of code to work, but I think a more compact solution for my layout is just to have the parent item linked in the 'peer items' display.

So, I have it linked, but I don't know what code will give me the correct link to the parent gallery. With the following code, the link goes to the top level gallery.

    <h3> 
    	<a href="{g->url arg1="view=core:ShowItem" arg2="itemId=`$parent.id`"}">
	  {$layout.parent.title|default:$layout.parent.pathComponent|markup}
	</a></h3>

I know I need to change what's in the quotes in for the href, but I'm not sure to what. Can anyone help? Thanks.

 
mindless
mindless's picture

Joined: 2004-01-04
Posts: 8601
Posted: Tue, 2005-04-12 04:20

maybe $layout.parent.id instead of $parent.id in arg2?

 
dsawchuk

Joined: 2005-01-22
Posts: 84
Posted: Tue, 2005-04-12 05:41

That worked! Thanks again to mindless.