Hey everyone. I'm wondering how to include extra IPTC fields in image.php. I have the most recent nightly build (as of the posting of this topic) but I don't see any other IPTC data besides image title, image description, and tags.
Also, when I add a new tag to the image, it includes it in the dB. Does anyone here know if there is a way to tag the actual image files with a new tag? This would be wonderful because it would let the community tag images and then those images would be portable to other applications.
thanks,
Walker
Comments
http://www.zenphoto.org/documentation/zenphoto/_template-functions.php.html#functiongetImageData
http://www.zenphoto.org/documentation/zenphoto/_template-functions.php.html#functionprintImageMetadata
http://www.zenphoto.org/documentation/zenphoto/_template-functions.php.html#functionprintImageEXIFData
Sorry, Zenphoto does currently not have the ability to add ITPC/EXIF data to images itself, you have to add that before uploading. But there is already a ticket for it.
Title, Caption, Location, City, State, Country, Credit, Copyright, and Keywords (tags)
Do I need to have getImageData in image.php as well as printImageMetadata?
ok. I'm confused. An example of the code needed to print all of the IPTC metadata in image.php would be great.
all the best,
Walker
<?php printImageData(location, Location)?>
<?php printImageData(state, State)?>
<?php printImageData(city, City)?>
<?php printImageData(country, Country)?>
<?php printImageData(credit, Credit)?>
<?php printImageData(copyright, Copyright)?>
Walker
After reading this thread, I posted this into both image.php files of the default and current theme I am using:
<?php printImageData("location", "Location"); ?>
<?php printImageData("state", "State"); ?>
<?php printImageData("city", "City"); ?>
<?php printImageData("country", "Country"); ?>
<?php printImageData("credit", "Credit"); ?>
<?php printImageData("copyright", "Copyright"); ?>
Could I have pasted it into the wrong place in that file? The above solution of this from wblackwell wasn't clear to where in that file to put it. I am still having the problem of Titles and Descriptions showing up.
Please help.
Lindsie