[SOLVED] Need to add IPTC info to end of Description field on import
|
Another_Matt
Joined: 2009-08-20
Posts: 33 |
Posted: Thu, 2009-10-29 23:50
|
|
I'm trying to figure out how to add IPTC/City & IPTC/State info to the end of my description on image import. Basically I want my location info searchable in the database. Is it possible to import three fields into one? I think the answer lies in EXIF/ExifDescriptionOption.inc around #115 but I can't figure it out. Can someone help with the code? Here's the original. Quote:
$itemDescription = ''; Thanks. -Matt |
|
| Login or register to post comments |

Posts: 33
Can I use CONCAT for this? I need ['IPTC/City']','['IPTC/ProvinceState'] at the end of ['IPTC/Caption'].
Any guidance on this is really appreciated.
Posts: 9283
AFAIK, the EXIF/IPTC info is not stored in the database and actually read every time the image is loaded. Which is one reason it's advised to not use the EXIF module on a heavily trafficked site as it will become a huge performance hit.
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 9283
Oh wait, I think I see what you're doing. So you're having that info imported into Gallery's description? I don't know the best approach to do that in the code.
I don't think you can use "CONCAT" for that as I don't think it's a valid PHP function, but...
http://php.net/manual/en/language.operators.string.php
____________________________________________
Like Gallery? Like the support? Donate now!!! See G2 live here
Posts: 33
That's what I'm looking for! I added a condition to grab the city & state info unless it's empty. Here's my change for the curious. Line #64 of ExifDescriptionOption.inc
Add
Line #117 change
Thanks for the help. Works great in the search.