Currently, there is no feedback to the ImageFlow user how many images are in the ImageFlow. It would be really great if the 'display caption' option could have an additional option of generating a caption that says "1 of 9" when viewing the first image of 9 images in the ImageFlow, and likewise for image 12 of an ImageFlow holding 45 images would say "12 of 45".
Looking at the code, it looks like such logic could be inserted into template_preprocess_views_slideshow_imageflow(), modifying the 'alt' tag of the images held by $vars['images'] if the site admin has asked for 'captions' and 'whatever-you-choose-to-call-this-new-parameter'.
Comments
Comment #1
bsenftner CreditAttribution: bsenftner commentedI've done a hack to views_slideshow_imageflow.theme.inc that accomplishes replacing each image's 'alt' attribute with a string of the form "[number] of [total-numbers]".
However, I don't know enough about authoring Views plug-ins to make the modifications to add another checkbox to the imageflow configuration to enable/disable this new capability.
I want it for my stuff, so I can just use the hacked version, but it sure would be cool if this were added to the plug-in officially.
Here's my modified template_preprocess_views_slideshow_imageflow() with my changes obviously identified:
(I also suck at regular expressions, and the preg_replace() I use to do the alt attribute replacement could probably use some examination - it catches all the characters I'm using in my alt attributes, but others could be using additional characters...)