coppermine-gallery.com/forum

Support => cpg1.4.x Support => Older/other versions => cpg1.4 themes/skins/templates => Topic started by: Puffinstuff on June 18, 2006, 12:23:43 AM

Title: Changing display order of IPTC data
Post by: Puffinstuff on June 18, 2006, 12:23:43 AM
I am trying to change the order in which IPTC data is displayed under 'File Information'

I have put relevent field at the top of the following arrays:

English.php file.
$lang_picinfo = array(
  'iptcCaptionWriter'=>'Print Size', //spb

Displayimage.php
if (isset($iptc) && is_array($iptc)) {
      array_walk($iptc, 'sanitize_data');
      if (isset($iptc['CaptionWriter'])) $info[$lang_picinfo['iptcCaptionWriter']] = $iptc['CaptionWriter'];//SPB

Iptc.incl.php
$IPTC_data=array(       "CaptionWriter"                =>         $iptc["2#122"][0],       # Max 32 octets, non-repeatable, alphanumeric


This does not seem to affect the display order.

How do I change the order in which they are displayed under the image?

Thanks in advance...
www.lumieres.com.au
Title: Re: Changing display order of IPTC data
Post by: Paver on June 18, 2006, 02:56:58 PM
Try this plugin: Filter File Information Fields on Image Display Page (http://forum.coppermine-gallery.net/index.php?topic=27407.0).  I just added a manual sort feature.  I plan to add a web-based configuration panel in the future, but I have no idea when that will be.  The manual sorting does the trick for me, for now.

Let me know if there are any IPTC issues in the plugin.  I don't use IPTC myself, so I haven't tested that.
Title: Re: Changing display order of IPTC data
Post by: Puffinstuff on June 18, 2006, 05:03:19 PM
Thanks Paver.... looks like thats what I am looking for.   Will try and then check back.

Regards