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.
Posts: 8601
maybe $layout.parent.id instead of $parent.id in arg2?
Posts: 84
That worked! Thanks again to mindless.