Support > cpg1.5 themes (visuals)

replace IPTC Title with IPTC Copyright

<< < (2/3) > >>

Nibbler:
It's not possible to do that in a custom theme - it's not a theme related function.

Αndré:
Maybe it's possible to accomplish that with a plugin, but I didn't had a look at the code. If it's not possible, we could add a new plugin hook.

clemphoto:

--- Quote from: Nibbler on April 01, 2010, 08:13:02 pm ---If you simply want to import the IPTC Copyright instead of the IPTC Title, just change picmgmt.inc.php from


--- Code: ---$title = (isset($iptc['Title'])) ? $iptc['Title'] : $title;

--- End code ---

to


--- Code: ---$title = (isset($iptc['Copyright'])) ? $iptc['Copyright'] : $title;

--- End code ---

Then re-add your pictures.

--- End quote ---
Thanks, Nibbler, I tried this, but the result was blank title, blank  description, blank keywords.  I reversed the change (back to original) and again have IPTC Title, IPTC Caption, and IPTC Keywords.

Del

clemphoto:

--- Quote from: Nibbler on April 01, 2010, 10:21:42 pm ---It's not possible to do that in a custom theme - it's not a theme related function.

--- End quote ---
I only mentioned a custom theme because Joachim advised me as above in this thread.  My concern with that approach is that it does not change the value of $title globally, so, for example, I might be able to display it with a file, but not search on it.  And I would need to be sure and change the display of both thumbnails and files.

Αndré:
So you want to insert the IPTC title to the database on file upload and not just to display it on thumbnail.php. Right?

Navigation

[0] Message Index

[#] Next page

[*] Previous page

Go to full version