ZenphotoCMS Forum
[1.4.5.7] printAlbumBreadcrumb tooltip - Printable Version

+- ZenphotoCMS Forum (https://forum.zenphoto.org)
+-- Forum: Support (https://forum.zenphoto.org/forum-1.html)
+--- Forum: General support (https://forum.zenphoto.org/forum-4.html)
+--- Thread: [1.4.5.7] printAlbumBreadcrumb tooltip (/thread-11490.html)



[1.4.5.7] printAlbumBreadcrumb tooltip - Michel - 18-11-2013

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 `` 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




[1.4.5.7] printAlbumBreadcrumb tooltip - acrylian - 18-11-2013

You have to create a custom function and add a "title" attribute to the link. That "title" is what creates the tooltip.




[1.4.5.7] printAlbumBreadcrumb tooltip - Michel - 18-11-2013

Hi acrylian,

I created this and it worked:

`
">Index | "> |

`
TIA




[1.4.5.7] printAlbumBreadcrumb tooltip - Michel - 19-11-2013

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




[1.4.5.7] printAlbumBreadcrumb tooltip - acrylian - 19-11-2013

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.




[1.4.5.7] printAlbumBreadcrumb tooltip - Michel - 19-11-2013

Hi acrylian,

How can I have a tooltip on album 2013?

TIA




[1.4.5.7] printAlbumBreadcrumb tooltip - acrylian - 19-11-2013

By adding it making your custom function?




[1.4.5.7] printAlbumBreadcrumb tooltip - Michel - 19-11-2013

Hi acrylian,

Can you help me on this one?

Via the `` I want a custom function to have a tooltip on the album 2013.

TIA




[1.4.5.7] printAlbumBreadcrumb tooltip - acrylian - 19-11-2013

Copy and rename that function's code and place it on your theme's functions.php. Then use it instead.




[1.4.5.7] printAlbumBreadcrumb tooltip - Michel - 19-11-2013

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




[1.4.5.7] printAlbumBreadcrumb tooltip - acrylian - 19-11-2013

As I said you need to create a custom function based on printparentalbumbreadcrumb and add there what you miss.