coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 miscellaneous => Topic started by: pcbill on July 04, 2006, 12:18:00 AM

Title: IPTC Category Field
Post by: pcbill on July 04, 2006, 12:18:00 AM
Does anyone know how to get the "IPTC Category" field to stop displaying on the display image page when the field is empty. Other fields only display when they have data. This one works the opposite.

Otherwise is ok to hack the displayimage.php page to try and disable it?

Thanks,

Bill
Title: Re: IPTC Category Field
Post by: Nibbler on July 04, 2006, 02:19:02 AM
Hack anything you like, change the remaining issets to !emptys


        if (isset($iptc['Title'])) $info[$lang_picinfo['iptcTitle']] = $iptc['Title'];
        if (isset($iptc['Copyright'])) $info[$lang_picinfo['iptcCopyright']] = $iptc['Copyright'];
        if (!empty($iptc['Keywords'])) $info[$lang_picinfo['iptcKeywords']] = implode(' ',$iptc['Keywords']);
        if (isset($iptc['Category'])) $info[$lang_picinfo['iptcCategory']] = $iptc['Category'];
        if (!empty($iptc['SubCategories'])) $info[$lang_picinfo['iptcSubCategories']] = implode(' ',$iptc['SubCategories']);
Title: Re: IPTC Category Field
Post by: pcbill on July 04, 2006, 03:51:40 PM
Thanks, have it working nicely now.

Bill