![]() |
|
template functions - no getImageCredit or getImageCopyright - 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: template functions - no getImageCredit or getImageCopyright (/thread-5987.html) |
template functions - no getImageCredit or getImageCopyright - chw - 2009-10-13 Hello all, Firstly, let me say Zenphoto is fantastic. fills a real gap in the market. well done and thanks a million. I've been looking at the Template Functions (http://www.zenphoto.org/documentation/functions/_template-functions.php.html) and its not clear to me why image fields like Location,City and State have getMethods (getImageLocation,getImageCity and getImageState) but not the Credit or Copyright fields. I'm using these fields as pseudo metadata fields, to store particular information about my images, and I need the Credit and Copyright fields because I've used up all the others! Guidance much appreciated. cheers template functions - no getImageCredit or getImageCopyright - acrylian - 2009-10-14 There is a "combined" function for this in case you use these fields with EXIF/IPTC data on the image directly: Depending on your php knowledge you can also share one field for several data using explode() and arrays. Otherwise you will have to create a filter to add more fields like the example here: template functions - no getImageCredit or getImageCopyright - sbillard - 2009-10-14 All database fields may be extracted via the object's But of course, the custom data field is really the way to go for your problem. These other fields may well get overridden if, for instance, you do a refresh metadata. Generally speaking, coopting a specific field other that the custom_data field is just asking for trouble in the long run. template functions - no getImageCredit or getImageCopyright - chw - 2009-10-16 Thanks very much for your replies. I've got a few questions
I'd appreciate your help with these questions. Cheers template functions - no getImageCredit or getImageCopyright - acrylian - 2009-10-16
template functions - no getImageCredit or getImageCopyright - chw - 2009-10-17 Hi thanks again for your reply. Just a few last points of clarification.
I'm less clear about whether this also applies to the location/city/state/country/credit/copyright fields, not least because these fields - in contrast to the EXIF fields - are editable in the Administration backend. So to double confirm, are you saying that the location/city/state/country/credit/copyright zenphoto fields will be overwritten for an image, if the uploaded image has IPTC metadata embedded in its header? I can't test this because I have no tools for setting an image's iptc metadata. If this is the case, why are these fields editable in the backend whereas the EXIF fields are not?
I've installed the filter-custom-data plugin, and made sure it is enabled in the backend. But I don't see any difference when I edit and save or upload a new image? I was expecting to see some new fields?? I've assumed I don't have to edit admin-edit.php as that's already done for me?? i'm on version 1.2.6. Can you clarify what it is I should be seeing, where and what I might be missing? Much appreciated template functions - no getImageCredit or getImageCopyright - chw - 2009-10-20 Hey Acrylian, I'd really appreciate your input on my last post. cheers |