ZenphotoCMS Forum
bxslider and getImageTitle - 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: bxslider and getImageTitle (/thread-13728.html)



bxslider and getImageTitle - ctdlg - 2022-06-05

Hello,

I would like to add image titles above each thumb using bxslider_thumb_nav extension.

I can add the file name using
$imgobj->getFileName();
exemple

but using
$imgobj->getImageTitle();
does not work.
exemple

getImageTitle() is located at template-functions.php - maybe the reason why this function is not available with bxslider extension.




bxslider and getImageTitle - fretzl - 2022-06-05

Use $imgobj->getTitle() or just getImageTitle()




bxslider and getImageTitle - acrylian - 2022-06-05

It's by the way explainded as an example here:
https://www.zenphoto.org/news/zenphotos-object-model-framework/

You can always consult the documentation here:
https://docs.zenphoto.org/1.5.x/class-Image.html

And note about class inheritance of parent classes.




bxslider and getImageTitle - ctdlg - 2022-06-05

Thank you for your help, it is OK now :

Alt text

I will print your documentation (your links) for reference !