This question is answered.


Permlink Replies: 3 - Pages: 1 - Last Post: 10 Feb 26, 13:51 Last Post By: JeffTucker
JeffTucker

Posts: 8,180
Registered: 31-Jan-2006
Variables within a fileiterator
Posted: 9 Feb 26, 21:33
 
  Click to reply to this thread Reply
This has been working properly for many, many years, but has recently gotten broken.

In slide.htt, plant the following bit of "show me" code:
<ja:fileiterator start="-2" count="7">
${fileName}
${thumbPath}
${thumbWidth}
${thumbHeight}
${title}
${comment}
</ja:fileiterator>
Now feed it a dozen images, a01, a02, a03, etc. On the page for a04, for example, you will see that it's returning the same file name for all seven iterations, all a04.jpg. It will also give you the same thumb dimensions, i.e., those for a04. Ditto for the title and comment - all taken from a04. Only the thumbPath is shown properly for each of the seven iterations.

ETA: I suspect this got broken in the release in which the paths got "cleaned up," but I haven't tracked it down yet.
JeffTucker

Posts: 8,180
Registered: 31-Jan-2006
Re: Variables within a fileiterator
Posted: 9 Feb 26, 22:06   in response to: JeffTucker in response to: JeffTucker
 
  Click to reply to this thread Reply
This appears to be very recent - working correctly in 39.0.4, broken in 39.1.
davidekholm

Posts: 3,905
Registered: 18-Oct-2002
Re: Variables within a fileiterator
Posted: 10 Feb 26, 13:44   in response to: JeffTucker in response to: JeffTucker
Correct
  Click to reply to this thread Reply
A classic case of causing a bug while fixing another :-(. The original bug was that slide-specific path variables weren't reset when leaving slide processing, so any "postdir" or "finally" script would see slide-specific paths.

I now believe I have a solid fix for this. Do a core update so you get v39.1.4
JeffTucker

Posts: 8,180
Registered: 31-Jan-2006
Re: Variables within a fileiterator
Posted: 10 Feb 26, 13:51   in response to: davidekholm in response to: davidekholm
 
  Click to reply to this thread Reply
That's better. :)

And thanks to zif for spotting this one in the first place. I might not have noticed that it was clobbering the thumbstrip in Atom for quite a long time. There aren't many "slide page" skins left out there!

https://jalbum.net/forum/thread.jspa?threadID=60950
Legend
Forum admins
Helpful Answer
Correct Answer

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