Filename for Title

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

Comments

  • acrylian Administrator, Developer
    No, as you would have to modify core files which is for hopefully obvious reasons not recommended. Why do you need this?

    If it is just for display modiy your theme to display the file name additionally.
  • 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?
  • acrylian Administrator, Developer
    `$_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.
Sign In or Register to comment.