![]() |
|
What is the best way to store information about images? - 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: What is the best way to store information about images? (/thread-2504.html) |
What is the best way to store information about images? - affa - 2008-03-23 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! What is the best way to store information about images? - sbillard - 2008-03-24 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. What is the best way to store information about images? - affa - 2008-03-24 Thanks sbillard. I see where it says "Custom data:" on the edit screen for an image. How do I make this into multiple labled fields? (ie, price & medium) Basically, I can't find the Admin Edit page you speak of. What is the best way to store information about images? - sbillard - 2008-03-24 You would have to write PHP to parse the field. use getCustomData() to retrieve it. There is also custom data for the album--look at the top of the edit page where the rest of the album info is. What is the best way to store information about images? - affa - 2008-03-24 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! What is the best way to store information about images? - acrylian - 2008-03-24 You could divide your desired values by comma for example in that field and use What is the best way to store information about images? - LpSoleil - 2008-05-02 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 : 2- Retrieve this information on frontEnd That's about it. Thank you for your wonderfull gallery. Lp What is the best way to store information about images? - acrylian - 2008-05-03 For example add this "pricevalue/sizevalue/mediumvalue (...)" Then use this to separate the values: http://www.php.net/manual/en/function.explode.php. If you maybe are trying to use PayPal for selling picture, you might try the nightly build that has a PayPal plugin. What is the best way to store information about images? - affa - 2008-05-03 LpSoleil, I ultimately did not use custom fields - rather, I 'misused' all the EXIF/IPTC fields and found the end result MUCH easier... and the info now travels with the files! For example, I put medium (oil, watercolor) where city was supposed to go. What is the best way to store information about images? - LpSoleil - 2008-05-04 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. What is the best way to store information about images? - LpSoleil - 2008-05-04 By the way, affa, is there a way to take a look at your site with art ? What is the best way to store information about images? - acrylian - 2008-05-04 LpSoleil, if you don't use photos with EXIF data and so are not "in danger" of overwriting the info, then affa's solution might be worth a try. BTW, the night has an experiemtat shutterfly plugin too. |