Hello
I am trying to change the data fields for the images and albums (you know, location, city, state etc.) to something custom instead. I would also like to remove some of the fields.
Is this possible?
Regards
Anders
This can be done on the admin back-end. On the image editing page, each image will have a link "show more fields" which will reveal these data fields for editing.
What do you want to change there? You can use these fields for anything, location must not contain a "location". It is all a matter of how you label them when displaying them on your theme.
Or do you mean the display of the exif data? That is done via the function printImageMetadata(). You can of course assemble your own custom display of that using the fields directly.
I would like to change the names of the fields.
Instead of location it should be origins and so on. Could that be done?
Probably the best way to do this is to create a custom function for your theme. You can use getImageMetadata() to get the fields and then display them however you want. (You could probably use printImageMetadata() as a template for the custom function.)
Cant I just change the original fields?
You can change the original fields, but you can't change the name of the original fields. printImageMetadata() will print each field with the title corresponding to the metadata field. To have custom titles, you will have to have your own function using getImageMetadata().
Hm ok. I'm not really that good at php. How do I use the getImageMetadata()?
http://www.zenphoto.org/2009/03/theming-tutorial/#custom-functions
You should create a file as per that link (functions.php) in your theme's directory. In that file, you can place the contents of the printImageMetadata() function from zp-core/template-functions.php as a template. You will need to make the function name something different, which will also mean that your theme will need to call the new function name instead of printImageMetadata().
You may want to read the rest of the Theming Tutorial as linked above. The edits you need to make to the custom function are fairly basic. You will have to figure it out on your own.
Sorry, I didn't see that you postet above.
, so iI found out that the EXIF fields have the sufficient types that I want. Now how do I enter information in the fields? no matter which fields I choose for displaying (options > Images > EXIF display), it is still the same fields that show then i "show more fields" under the images. How do I edit the EXIF fields?
oh ok... hmm... How do I get the gallery to display "Special Data" then?
no, i mean, there is a field called special data. how do i get it to display the data entered in that field?
ah, makes sense. How do I add it to the image template?