Toggle navigation
Home
News
User guide
Themes
Extensions
Showcase
Login
Register
Login
Username:
Password:
Lost Password?
Remember me?
ZenphotoCMS Forum
Support
General support
Filename for Title
Member
Member
weldonassoc
2013-12-27, 03:45
#1
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
Administrator
Administrator
acrylian
2013-12-27, 11:33
#2
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.
Member
Member
weldonassoc
2013-12-27, 19:21
#3
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.
Member
Member
weldonassoc
2013-12-27, 19:24
#4
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?
Administrator
Administrator
acrylian
2013-12-27, 19:55
#5
`$_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
Member
Member
weldonassoc
2013-12-27, 23:36
#6
Perfect. Thanks.
Search Thread
Next Oldest
Next Newest
Contact Us
Legal
Terms Of Service
Privacy
RSS Syndication
Return to Top
Powered By
MyBB
, © 2002-2026
MyBB Group
.
Made with
by
Curves UI
.