I am quite happy with Matrix, but I want to make a small change I am hoping some here might be able to help with.
The Drupal site I am using it with does not use breadcrumbs, so to provide users with a similar 'go back' type functionality, I want to add a 'back to parent album' link.
What I'd ideally like would be a link that on album.tpl that when clicked takes you back to the album the album you are viewing belongs to. If you are already at the highest album (based on URL perhaps - eg. sitename.com/gallery), no link should be displayed.
On photo.tpl, the same would apply, only the link should always be displayed and just similarly take you back to the album that photo belongs to.
Would this be difficult? Can anyone help me out with how it should go?
Thanks.
Posts: 27300
http://gallery.menalto.com/node/90350
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 20
Thanks Dave it worked like a charm, but now I think I'd be better off with a full breadcrumb. Is there anywhere I can find the code to insert for that where desired in album.tpl and photo.tpl?
ie. Gallery > Album > Picture
Thanks again.
Posts: 27300
Glad that worked , never tired it.
any way you could try
modules/core/templates/blocks/BreadCrumb.tpl
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team
Posts: 20
Okay, I suppose that was kind of dumb of me. All I had to do was insert:
{g->block type=core.BreadCrumb [separator=..]}
Works fine. The only thing I'd like to customize is to hide currently viewed item name (lowest/last breadcrumb item). There's already a title stating it on the page. It's redundant.
My current breadcrumb.tpl reads:
Again, any help is appreciated.
Posts: 27300
You should just have to remove the last span:
Dave
_____________________________________________
Blog & G2 || floridave - Gallery Team