I'm in the midst of setting up a ZenPhoto/Wordpress integrated site for a relative's art gallery. I'm trying to sort out the best way to store information about each piece of artwork.
I know that something like title should be stored in the image file's metadata.
But what about something like size and price? I see a field called 'custom data' in the Zenphoto admin screen for an image, but that's only one field. I see in the Changelog for 1.1.4 that there is an entry "Site defined custom data fields for images and albums" but no matter how I google this I can't find directions (might just be looking in the wrong place!).
Anyway, my question is - based on your experiences/knowledge, what is the best way to store all the various information I need to store? And if the answer is custom fields, can someone point me to an instructional page on them?
Title (metadata), Date Art Created (metadata?), Price (custom field?), Size, Medium, etc.
Thanks in advance! I love Zenphoto!
For any information that has EXIF/IPTC fields, these are the best place to store. Otherwise, use the database fields. Do check, though. not all IPTC fields are currently captured by zenphoto. Just the ones that correspond to zenphoto database fields. All these fields are accessable/alterable in the ADMIN EDIT pages, including the afore mentioned custom data fields.
Ah, ok. I thought it was more of a 'add 3 fields' type of solution and I was just blind. Parsing makes it a bit more complex but certainly not impossible.
Now someone needs to write a fancy plugin that manages custom fields, letting the user create and access different values without needing to code php!
That's a hint to all of you wonderful plug-in developers out there.
Thanks again for the wonderful Zenphoto!
Well, I was looking for the same thing ( add 3 more data field for my Artwork ) and I don't quite understand the principle. Can you explain more please. Or tell me where to look in the code
The need is :
1- being able to add (or change) 3 fields when I insert an image - that are metadata i guess such as Location, City, State... but for title, medium, size, price...
2- Retrieve this information on frontEnd
That's about it.
Thank you for your wonderfull gallery.
Lp
For example add this "pricevalue/sizevalue/mediumvalue (...)"
To get the data of the image custom field in your theme use this:
http://www.zenphoto.org/documentation-official/zenphoto/_template-functions.php.html#functiongetImageCustomData
Then use this to separate the values: http://www.php.net/manual/en/function.explode.php.
There are some example below how to use it.
If you maybe are trying to use PayPal for selling picture, you might try the nightly build that has a PayPal plugin.
I will try to work it out with Acrylian solution, that will be simpler for other user to put information under the right fields. I am more an artist than a developper, but I do like to dig the code and make it works. The goal is set and the tool too, i just have to clarify and work it out! And for the PayPal plugin, that is a really good idea. Thank you Acrylian.
Thank you to Affa too for his/her answer.