I tested my code before I posted it and it seemed to work fine.
The image number and caption (if there is one assigned to the image) are both displayed in a div below the gallery.
The Image Number ; (gives the number position in the array e.g. 2 of however many or 3 of however many)
This sounds like you are looking at the image number (displayed by setting showImageNumber="TRUE") within the gallery.
The text my code uses to display the image number does not use this format.
Does the script call the caption correctly?
I see in the xml file that it is in ![CDATA] format. Not that I understand what that means.
A caption's contents may be enclosed within CDATA tags so that HTML tags can be used in the caption without breaking the formatting of the XML file.
When getting a caption using the SimpleViewer-Pro API, the CDATA tags will automatically be stripped (if they are used) so you do not need to worry about this.
If a caption contains just plain text, then it does not matter whether CDATA tags are used or not.
So, my question now is, how do I ensure that svBuilder or the photoshop plugin outputs the caption field with image numbers instead of CDATA ?
This is not possible with svBuilder (unless you rename all your images so that the filenames are their actual numbers).
This is also not possible with the Photoshop plugin (without rewriting a section of the plugin).
However, neither of the above is necessary.
I have just double-checked my code above and it definitely works OK for me.
To see it in action, just create a test gallery with svBuilder-Pro and replace the gallery's 'index.html' file with the code from my post above. Upload the test gallery to your web server and you should see the image number and caption for the current image displayed below the gallery in a separate div.
At the moment, your http://www.entiredesign.biz/simpletest/ gallery seems to be functioning as expected. No captions are displayed below the gallery because no images in your gallery have any captions.
SimpleViewer Support Team