By 1st-angel on
hi,
I want to ask how i can add a link to the parent album on the page of e.g. an image.
I found out that the pager is (which is the best location to put such a link) is created by acidfree_pager_creator() which does not more than calling theme_pager().
The problem is that if i would write my own theme_pager() for my theme it would be there for all nodes and normal nodes do not have a parent normally.
Does anyone have a solution for that problem?
thanks,
angel.
Comments
no help?
can't somebody answer?
angel
can't help, but I want same
yeah, just chiming in here, I really would like to link back to the album-overview from every node in that album.
I made it a feature request:
http://drupal.org/node/73246
I'm a php Noob, can't wrap my head around basic theming (yet). But I did find this piece of code in class-album.inc:
But how I'd take that and plug that into the
in class-photo.inc, I don't know.
As a designer, it's things like this I'd like to be able to tweak myself, but alas, not enough grasp on the PHP.
The capability is already there
Acidfree creates a breadcrumb trail, which does have links to the parent, grandparent, great-grandparent, etc., all the way to the root album. All you have to do is make sure your
_page function prints the breadcrumbs. This is what mine does:
Is that not enough?
more than enough!
Thank you, I did not know acidfree could create it's own breadcrumb.
It's more than enough in the sense that it shows a complete path, which is not always what I would like to see, but I'm sure that could be tweaked as well.
Thanks again!