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


Permlink Replies: 3 - Pages: 1 - Last Post: 25 Nov 25, 09:01 Last Post By: JeffTucker
PhuLamPhotos

Posts: 2
Registered: 15-Jul-2023
Image count (i.e. x/xx) start at "0" instead of "1"
Posted: 23 Nov 25, 17:02
 
  Click to reply to this thread Reply
All of my albums (750+) start with a Title Card/Placard that gives info about the album. The actual photos have the caption and an index number (starting at #1) printed on the picture.

Is there a way to have the picture count start a "0" instead of "1" so that the picture count matches the index number printed on the photo?
Laza

Posts: 1,403
Registered: 6-Sep-2005
Re: Image count (i.e. x/xx) start at "0" instead of "1"
Posted: 24 Nov 25, 06:39   in response to: PhuLamPhotos in response to: PhuLamPhotos
 
  Click to reply to this thread Reply
"Printed on the picture" means the caption, does it?

In that case, choose the caption template "Custom" and replace
<span class="nr">${imageNum}</span>

with:
<%= typeof imageNum !== 'undefined'? ('<span class="nr">' + (imageNum-1) + '</span>') : '' %>
PhuLamPhotos

Posts: 2
Registered: 15-Jul-2023
Re: Image count (i.e. x/xx) start at "0" instead of "1"
Posted: 25 Nov 25, 01:36   in response to: PhuLamPhotos in response to: PhuLamPhotos
 
  Click to reply to this thread Reply
Thanks for the reply. 

Printed on the picture> I actually print the caption (up to 3 lines) on the photo before it is added to jAlbum. 

Since I wrote, I decided to go a different way. I added 1 more line (4 total) and placed the picture count right on the bottom of the picture. That way I have complete control over it.

I did look into your suggestion though. I had never noticed the "Custom" option in the caption template. I decided to place the Album Title at the bottom of the screen using this code:

<div class="title">${albumTitle}</div>


I am surprised it is not one of the items you can select off the menu.

Edited by: Laza on 25 Nov 2025, 07:55
Fixing the code display.
JeffTucker

Posts: 8,041
Registered: 31-Jan-2006
Re: Image count (i.e. x/xx) start at "0" instead of "1"
Posted: 25 Nov 25, 09:00   in response to: PhuLamPhotos in response to: PhuLamPhotos
 
  Click to reply to this thread Reply
PhuLamPhotos wrote:
I actually print the caption (up to 3 lines) on the photo before it is added to jAlbum. 

The problem with doing that is that the text gets smaller along with the photo. So, on a phone, the caption is unreadable.

The other problem with that is that part of the photo is always obscured by the caption. You can’t see the photo by itself.

I am surprised it is not one of the items you can select off the menu.

Most users don’t want the same text to appear on every photo.
Legend
Forum admins
Helpful Answer
Correct Answer

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