coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: vojtec on February 21, 2008, 09:14:32 AM

Title: IPTC data in the image title and description
Post by: vojtec on February 21, 2008, 09:14:32 AM
Hello,

when I import an image with IPTC data, I'm able only to show them down under the picture in the info box, but I'd like to show IPCT title in image title and same with description.

Is it possible?
Thanks for help
vojtec
Title: Re: IPTC data in the image title and description
Post by: mala on March 07, 2008, 11:25:25 AM
I  had a similar problem. The title of my images was labelled "Headline" when I loocked at the IPTC data with some program (in this case irfanview).
Then I modified a little the file include/picmgmt.inc.php . Here are the two lines. The commented one (starting with //) is the original the other is the modif.

          //    $title = (isset($iptc['Title'])) ? $iptc['Title'] : $title;  //ORIGINAL LINE AM09_02_2008
               $title = (isset($iptc['Headline'])) ? $iptc['Headline'] : $title;        //AM09_02_2008 TO PATCH UP ITPC 


The full IPTC array  is in iptc.inc.php to find out what is what.

After this modification the "Headline" IPTC field went directly in the title of the image (I will eventually upload 7000 images so the modification was important for me).

Maybe this will help you to settle your problem, although I am not sure the solution is very kosher.