This question is answered.


Permlink Replies: 14 - Pages: 1 - Last Post: 28-Oct-2018 09:33 Last Post By: vladdo05 Threads: [ Previous | Next ]
BrianAbbott

Posts: 68
Registered: 20-Dec-2008
Caption template
Posted: 06-Feb-2018 10:51
 
  Click to reply to this thread Reply
Is there a 'cheat sheet' or quick reference or FAQ for what expressions to use in the caption template ?

Thanks

Brian
Laza

Posts: 7,037
Registered: 6-Sep-2005
Re: Caption template
Posted: 06-Feb-2018 13:13   in response to: BrianAbbott in response to: BrianAbbott
Correct
  Click to reply to this thread Reply
It's HTML, and you can use jAlbum variables in this format ${variableName}. Here you are the variables: http://jalbum.net/help/en/Variables
vladdo05

Posts: 8
Registered: 24-Oct-2018
Re: Caption template
Posted: 25-Oct-2018 20:57   in response to: BrianAbbott in response to: BrianAbbott
 
  Click to reply to this thread Reply
Attachment caption.jpg (183.0 KB)
Hello,
I was looking variables, but I dont know.
What is the string please, when I have metadata commnets?
<h2>${fileLabel}</h2><div class="comment">${comment}</div>
or
<h2>${fileLabel}</h2><div class="comments">${comment}</div>


Edited by: jGromit on 25-Oct-2018 15:14, to use code tags
jGromit

Posts: 32,067
Registered: 31-Jan-2006
Re: Caption template
Posted: 25-Oct-2018 21:14   in response to: vladdo05 in response to: vladdo05
 
  Click to reply to this thread Reply
You can tell jAlbum to get its comment variable from several sources - see Album > Settings > Advanced > Metadata > Comment sources.

However, you have a comment in a metadata field called Windows XP Comment, and that's not one of the options. jAlbum cannot use that field as the comment. What you need is this:
<h5>${fileLabel}</h5><div class="comment"><%=meta.get("Windows XP Comment")%></div>
vladdo05

Posts: 8
Registered: 24-Oct-2018
Re: Caption template
Posted: 25-Oct-2018 21:52   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Attachment cat2.jpg (416.3 KB)
It works,Thanks!
What is strange, before was working with metadata: title - look in attachement1.

How can I choose f.e. only 2 of windows XP comment - Title and Subject.?

I dont know why JAlbum after Make album leaves only Title?And Automatic delete Subject, Tags, Comments... metadata in foto in album/slides/xx.jpg?
jGromit

Posts: 32,067
Registered: 31-Jan-2006
Re: Caption template
Posted: 25-Oct-2018 22:15   in response to: vladdo05 in response to: vladdo05
 
  Click to reply to this thread Reply
In the main jAlbum Explore window, right-click on a thumbnail and choose List metadata. That will show you what metadata fields jAlbum can read, and what the contents of each one is.

jAlbum does not copy the metadata to the output images unless you tell it to. See Album > Settings > Advanced > Metadata > Include photographic data in generated images (the second check box).
vladdo05

Posts: 8
Registered: 24-Oct-2018
Re: Caption template
Posted: 26-Oct-2018 12:31   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Attachment cap3.jpg (75.0 KB)
In this list are not XP metadata?I would like choose XP metadata Title and Subject. Should I use string in caption template?
By the way, why windows automatic populate subject, when I fill only title?

Edited by: vladdo05 on 26-Oct-2018 12:37
jGromit

Posts: 32,067
Registered: 31-Jan-2006
Re: Caption template
Posted: 26-Oct-2018 14:17   in response to: vladdo05 in response to: vladdo05
 
  Click to reply to this thread Reply
vladdo05 wrote:
In this list are not XP metadata?I would like choose XP metadata Title and Subject. Should I use string in caption template?

jAlbum uses a third-party metadata extractor library: https://github.com/drewnoakes/metadata-extractor. It concentrates on cross-platform metadata, rather than things that are specific to Windows. If that library can extract the metadata, jAlbum can use it. Otherwise, not.

By the way, why windows automatic populate subject, when I fill only title?

You'd have to ask Microsoft about that.
Laza

Posts: 7,037
Registered: 6-Sep-2005
Re: Caption template
Posted: 26-Oct-2018 16:35   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Modern Windows versions write xmp data instead of the proprietary XP data.
jGromit

Posts: 32,067
Registered: 31-Jan-2006
Re: Caption template
Posted: 26-Oct-2018 16:51   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Attachment ss004524.png (27.6 KB)
But in typically perverse Microsoft fashion, the Windows XP Title gets written out to xmp.dc:description[1] and xmp.dc:title[1], but the Windows XP Subject and Windows XP Comment don't get written out to xmp at all.

See screenshot.

They manage to get it wrong every time. It's uncanny.

ETA: But now, a new puzzle. Look at that screenshot - you will not see "XP Comment" listed in any of the xmp metadata fields. But if I tell jAlbum to get its comments only from xmp, it is picking up that text! I'm thinking that there's something wrong with the List metadata extension.
jGromit

Posts: 32,067
Registered: 31-Jan-2006
Re: Caption template
Posted: 26-Oct-2018 17:03   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Laza

Posts: 7,037
Registered: 6-Sep-2005
Re: Caption template
Posted: 26-Oct-2018 21:00   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
Yes, it's amazing how silly a leading IT company could be.
vladdo05

Posts: 8
Registered: 24-Oct-2018
Re: Caption template
Posted: 27-Oct-2018 20:11   in response to: Laza in response to: Laza
 
  Click to reply to this thread Reply
Attachment cap4.jpg (447.9 KB)
I spend lot of time to make commnets for images in Exif Pilot. If I knew this about windows metadata.
But I don't need use them?
Can you confirm if is good way use Exif - Image description or Description?
See in attach. Caption template string is ok?
jGromit

Posts: 32,067
Registered: 31-Jan-2006
Re: Caption template
Posted: 27-Oct-2018 20:53   in response to: vladdo05 in response to: vladdo05
 
  Click to reply to this thread Reply
Attachment exif.png (20.2 KB)
Attachment xmp1.png (15.4 KB)
Attachment xmp2.png (20.0 KB)
If you have entered EXIF Comment, you can tell jAlbum to use that field as the source of its comment variable - see exif.png screenshot (it's called EXIF User on this panel). In the Tiger caption template, just use ${comment}.

But for the future, the best choice is to put your comments in xmp Description - see xmp1.png screenshot. Then tell jAlbum to use xmp as the source of its comment variable - see xmp2.png screenshot.
vladdo05

Posts: 8
Registered: 24-Oct-2018
Re: Caption template
Posted: 28-Oct-2018 09:33   in response to: jGromit in response to: jGromit
 
  Click to reply to this thread Reply
thanks for help

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