[1.4.5.7] printAlbumBreadcrumb tooltip

Hi All,

Almost 9 months ago I asked the same question, but this worked with the early ZP installs.

Now with the latest ZP installs this function had a update so my modified function don't work anymore.

How do I get a tooltip on the `<?php printAlbumBreadcrumb("", " | "); ?>` function?

I tried the subalbum description, because with a album this is working, but with a subalbum not.

Now i have this working: Index | 2013 | Amsterdam |

Index = return to index, controlled by getGalleryIndexURL
2013 = return to albums, controlled by album description
Amsterdam = no tooltip

The function on template function

`
function printAlbumBreadcrumb($before = '', $after = '', $title = NULL) {
if ($breadcrumb = getAlbumBreadcrumb($title)) {
if ($before) {
$output = '' . html_encode($before) . '';
} else {
$output = '';
}
$output .= "";
$output .= html_encode($breadcrumb['title']);
$output .= '
';
if ($after) {
$output .= '' . html_encode($after) . '';
}
echo $output;
}
}
`
TIA

Comments

  • acrylian Administrator, Developer
    You have to create a custom function and add a "title" attribute to the link. That "title" is what creates the tooltip.
  • Hi acrylian,

    I created this and it worked:

    `

    " title="<?php echo gettext('Return to index'); ?>">Index | <?php printParentBreadcrumb("", " | "); ?> " title="<?php echo gettext('Return to album thumbnails'); ?>"><?php echo getAlbumTitle(); ?> |
    <?php printImageTitle(true); ?>

    `
    TIA
  • Hi,

    Still one question.... the tooltip from the album is controlled by the album description. But when I activate the html_meta_tags the description content in the header will be return to album.

    Can I have a tooltip for the album 2013 without the album description in the backend?

    So:

    Index = return to index, controlled by getGalleryIndexURL...ok now.

    2013 = return to albums, controlled backend album description

    Amsterdam = return to album thumbnails, controlled by getAlbumLinkURL...ok now.

    TIA
  • acrylian Administrator, Developer
    I am sorry I don't understand what you mean by But when I activate the html_meta_tags the description content in the header will be return to album.

    The html_meta_tags plugins uses the content of the page itself to generate those tags. You can make your breadcrumb function with whatever you like as your tooltip.
  • Hi acrylian,

    How can I have a tooltip on album 2013?

    TIA
  • acrylian Administrator, Developer
    By adding it making your custom function?
  • Hi acrylian,

    Can you help me on this one?

    Via the `<?php printParentBreadcrumb("", " | "); ?>` I want a custom function to have a tooltip on the album 2013.

    TIA
  • acrylian Administrator, Developer
    Copy and rename that function's code and place it on your theme's functions.php. Then use it instead.
  • Hi,

    I'm confused right now, the printparentbreadcrumb has no tooltip function.

    To have a tooltip on that album I have to place it on the backend album description field.

    But I think that is not the right angle for my problem.

    TIA
  • acrylian Administrator, Developer
    As I said you need to create a custom function based on printparentalbumbreadcrumb and add there what you miss.
Sign In or Register to comment.