Member
Member
Michel   2013-11-18, 20:42
#1
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 .= "<a>";
$output .= html_encode($breadcrumb['title']);
$output .= '</a>';
if ($after) {
$output .= '' . html_encode($after) . '';
}
echo $output;
}
}
`
TIA
Administrator
Administrator
acrylian   2013-11-18, 20:54
#2
You have to create a custom function and add a "title" attribute to the link. That "title" is what creates the tooltip.
Member
Member
Michel   2013-11-18, 22:57
#3
Hi acrylian,

I created this and it worked:

`
">Index | <?php printParentBreadcrumb("", " | "); ?> "><?php echo getAlbumTitle(); ?> |
<?php printImageTitle(true); ?>
`
TIA
Member
Member
Michel   2013-11-19, 16:49
#4
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
Administrator
Administrator
acrylian   2013-11-19, 16:59
#5
I am sorry I don't understand what you mean by [i]But when I activate the html_meta_tags the description content in the header will be return to album.[/i]

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.
Member
Member
Michel   2013-11-19, 17:34
#6
Hi acrylian,

How can I have a tooltip on album 2013?

TIA
Administrator
Administrator
acrylian   2013-11-19, 17:38
#7
By adding it making your custom function?
Member
Member
Michel   2013-11-19, 17:42
#8
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
Administrator
Administrator
acrylian   2013-11-19, 17:48
#9
Copy and rename that function's code and place it on your theme's functions.php. Then use it instead.
Member
Member
Michel   2013-11-19, 18:07
#10
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
Administrator
Administrator
acrylian   2013-11-19, 18:11
#11
As I said you need to create a custom function based on printparentalbumbreadcrumb and add there what you miss.
  
Powered By MyBB, © 2002-2026 MyBB Group.
Made with by Curves UI.