Changing display order of IPTC data Changing display order of IPTC data
 

News:

cpg1.5.48 Security release - upgrade mandatory!
The Coppermine development team is releasing a security update for Coppermine in order to counter a recently discovered vulnerability. It is important that all users who run version cpg1.5.46 or older update to this latest version as soon as possible.
[more]

Main Menu

Changing display order of IPTC data

Started by Puffinstuff, June 18, 2006, 12:23:43 AM

Previous topic - Next topic

0 Members and 1 Guest are viewing this topic.

Puffinstuff

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

Paver

Try this plugin: Filter File Information Fields on Image Display Page.  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.

Puffinstuff

Thanks Paver.... looks like thats what I am looking for.   Will try and then check back.

Regards