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

1st-angel’s picture

can't somebody answer?

angel

yoroy’s picture

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:

function theme_acidfree_print_thumb_album(&$node) {
    $album_link = "node/{$node->nid}";
    $image = _acidfree_get_thumb_url($node);

But how I'd take that and plug that into the

function theme_acidfree_print_full_photo(&$node) {

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.

vhmauery’s picture

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:

    $output .= theme("breadcrumb", drupal_get_breadcrumb());

Is that not enough?

yoroy’s picture

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!