I would like to adjust the code so that the filename is added to the image Title upon upload.
Can anyone tell me where in the code to change this?
Thanks,
Chris W
I am trying to, but I can't find the function or global variable that will allow me to echo the file name.
The theme I am using is "StopDesign".
If you could help with that, it would be greatly appreciated.
The closest I have found is $_zp_current_image
which carries the image PrimaryKey from the DB.
Maybe I can call a function that return the filename from a search of the DB using the images PrimaryKey.
Any ideas?
$_zp_current_image contains the object of the current image. So echo $_zp_current_image->filename gets the filename.
See also: http://www.zenphoto.org/news/zenphotos-object-model-framework
Perfect. Thanks.