Announcement

#1 2011-09-20 23:53:53

quixote
Member
2008-05-10
92

[resolved] how to get IPTC_caption to display as regular caption?

I'm confused. I've seen the posts about changing config.inc.php.  What I want to achieve is for piwigo to use the filename as the Name, and the IPTC_caption (if there is one) as a comment just below that. Filename as name works fine.  But the IPTC_caption only shows up if the camera-info icon is clicked. (Here is an example of what I mean.) I'd like it to show up whenever it exists, and to be labeled "Comment".  How should I do that?

What I have in my ./local/config/config.inc.php now is the following. I added the few lines at the end.

Code:

$conf['show_iptc_mapping'] = array(
//  'iptc_keywords'        => '2#025',    //changed 2011-09-17 -- commented out
  'iptc_caption_writer'  => '2#122',
  'iptc_byline_title'    => '2#085',
  'iptc_caption'         => '2#120'
  );

$conf['use_iptc'] = true;

// use_iptc_mapping : in which IPTC fields will PhpWebGallery find image
// information ? This setting is used during metadata synchronisation. It
// associates a phpwebgallery_images column name to a IPTC key
$conf['use_iptc_mapping'] = array(
  'keywords'        => '2#025',
  'date_creation'   => '2#055',
  'author'          => '2#122',
  'name'            => '2#005',
  'comment'         => '2#120'
  );

//added 2011-09-17

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

What should I change in that mess I've made, and how, exactly, should I change it?  I'm completely confused by the numerical codes and can't figure out the right ones to use or how to use them.

Offline

 

#2 2011-09-24 15:26:22

quixote
Member
2008-05-10
92

Re: [resolved] how to get IPTC_caption to display as regular caption?

Well, I'll try bumping this up. I'm convinced there's a way to do this if I could just get one of the lines like this:

  'comment'         => '2#120'

into the right syntax.

Offline

 

#3 2011-09-24 22:42:31

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13182

Re: [resolved] how to get IPTC_caption to display as regular caption?

Sorry for this late reply quixote.

Your configuration is correct. I think the only thing you need to do know is to click on the "thunder" icon on the photo administration screen or use the "synchronize metadata" action in the Batch Manager.


Latest blog post (November 9th 2018) Why Flickr could not remain free for ever

Offline

 

#4 2011-09-25 05:17:41

quixote
Member
2008-05-10
92

Re: [resolved] how to get IPTC_caption to display as regular caption?

Yes!  You're absolutely right.  It never occurred to me that I need to re-sync, but now I can see the logic of it.  Now I'm getting the image comment twice.  Just need to get rid of the second one.  I think all I need to do is take my extra lines out of config.inc.php.

Thanks!

(By the way, where is the "thunder" icon?  It worked using Tools > Synchronize, so it's not a problem.  Just  curious.)

Last edited by quixote (2011-09-25 05:19:29)

Offline

 

#5 2011-09-26 11:29:42

plg
Piwigo Team
Nantes, France, Europe
2002-04-05
13182

Re: [resolved] how to get IPTC_caption to display as regular caption?

quixote wrote:

(By the way, where is the "thunder" icon?  It worked using Tools > Synchronize, so it's not a problem.  Just  curious.)

The thunder icon is on the top of the picture administration page. For example, click on the edit button on this page http://molvray.com/photos/picture.php?/ … tegory/157


Latest blog post (November 9th 2018) Why Flickr could not remain free for ever

Offline

 

#6 2011-09-26 20:06:17

quixote
Member
2008-05-10
92

Re: [resolved] how to get IPTC_caption to display as regular caption?

Aha.  Found it. :D

Offline

 

Board footer

Powered by FluxBB

github twitter facebook google+ newsletter Donate Piwigo.org © 2002-2019 · Contact