Announcement

#1 2016-12-29 19:42:34

terminus
Member
2014-11-17
19

How to override default mapping of IPTC metadata to Piwigo fields?

Hi,

By default, if IPTC is enabled in your config file, the Caption-Abstract field goes into Piwigo's description (comment) field.  But I want it to go into the title (name) field.  How do I achieve that?  I tried the following, but it didn't work:

$conf['show_iptc_mapping'] = array(
  'name'            => 'Caption-Abstract'
  );
$conf['use_iptc_mapping'] = array(
  'name'            => 'Caption-Abstract'
  );

Thanks!

Piwigo version: 2.7.2
PHP version: 5.6.7-1
MySQL version: 5.5.42-1
Piwigo URL: http://www.malcolm.id.au/gallery

Offline

 

#2 2016-12-30 05:24:33

ddtddt
Piwigo Team
Quetigny - France
2007-07-27
7207

Re: How to override default mapping of IPTC metadata to Piwigo fields?

Hi :-)

I think

$conf['show_iptc_mapping'] = array(
  'name'            => '2#120'
  );
$conf['use_iptc_mapping'] = array(
  'name'            => '2#120'
  );


You love Piwigo so don't hesitate to participate, learn more on the "Contribute to Piwigo" page. If you don't have much time for contribution, you can also help the project with a donation.

Offline

 

#3 2016-12-30 20:35:17

terminus
Member
2014-11-17
19

Re: How to override default mapping of IPTC metadata to Piwigo fields?

Thanks, that works.  By the way, where are those numbers documented?  I've seen that other people seem to be able to use metadata.php to show those numbers, but for me it only shows the field names.

Offline

 

#4 2016-12-30 21:21:43

flop25
Piwigo Team
2006-07-06
7037

Re: How to override default mapping of IPTC metadata to Piwigo fields?

what exactly give syou tools/metadata.php ?


To get a better help : Politeness like Hello-A link-Your past actions precisely described
Check my extensions : more than 30 available
who I am and what I do : http://fr.gravatar.com/flop25
My gallery : an illustration of how to integrate Piwigo in your website

Offline

 

#5 2016-12-30 22:33:41

terminus
Member
2014-11-17
19

Re: How to override default mapping of IPTC metadata to Piwigo fields?

Oh sorry I was wrong!  It's at the top of the output but I missed it, thinking it was just a header:

Informations are read from sample.jpg<br><br><br>IPTC Fields in sample.jpg<br><br>2#000 = ^D<br>2#120 = Title of the photo<br><br><br>EXIF Fields in sample.jpg<br><pre>Array
(
    [FileName] => sample.jpg
    [FileDateTime] => 1483133532
    [FileSize] => 4869528
    [FileType] => 2
    [MimeType] => image/jpeg...

Offline

 

Board footer

Powered by FluxBB

github twitter newsletter Donate Piwigo.org © 2002-2024 · Contact