Thread Locked This thread is locked - replies are not allowed.


This question is answered. Helpful answers available: 2. Correct answers available: 1.


Permlink Replies: 3 - Pages: 1 - Last Post: 30 Jan 24, 15:47 Last Post By: JeffTucker
wziegler

Posts: 31
Registered: 26-Nov-2023
PhotoData formatting
Posted: 29 Jan 24, 18:38
 
Hi,
I would like to show some custom IPTC tags in the Photo Data display box.

Is there a tutorial which describes the syntax I can use in the text box to format the display?

I display the field-name and value, but would like to display a custom text and value. For example tag 0x028f currently displays as:
Iptc.Unknown tag (0x028f) L721

I'd like to display
Model L721
or add a line of text.

Thank-you Wolfgang
Laza

Posts: 1,500
Registered: 6-Sep-2005
Re: PhotoData formatting
Posted: 30 Jan 24, 11:09   in response to: wziegler in response to: wziegler
 
Attachment util.js (169.7 KB)
I thought this had been already implemented, but it seems this customization is only available in Plain skin.

With the attached util.js you can now add a label before a line in the Photodata template box to overwrite the default label:
Model=Iptc.Unknown tag (0x028f)


Download the attached util.js file and save it to the skin directory (Ctrl-Shift-S) / lib folder (overwriting the old one).
wziegler

Posts: 31
Registered: 26-Nov-2023
Re: PhotoData formatting
Posted: 30 Jan 24, 15:34   in response to: Laza in response to: Laza
 
Laza,
that does exactly what I was looking for.
Still curious, what doe the '|' and'/' do in syntax of the default template box?
Regards, Wolfgang
JeffTucker

Posts: 8,297
Registered: 31-Jan-2006
Re: PhotoData formatting
Posted: 30 Jan 24, 15:46   in response to: wziegler in response to: wziegler
 
wziegler wrote:
Still curious, what doe the '|' and'/' do in syntax of the default template box?

The "pipe" symbol means "or." The "slash" symbol is just part of the name of the metadata field.
Copyright|Iptc.Copyright Notice|Iptc.IIM/CopyrightNotice
This means "Use Copyright or Iptc.Copyright Notice or Iptc.IIM/CopyrightNotice, whichever you find first."
Legend
Forum admins
Helpful Answer
Correct Answer

Point your RSS reader here for a feed of the latest messages in all forums