Is there a way a feature could be added to show a simple counter

that lets the end user know which slide they are viewing and the total number of slides in the slide show. Thanks in advance

Comments

jdanthinne’s picture

Status: Active » Needs work

It seems that the Cycle plugin has this option (http://jquery.malsup.com/cycle/count.html), so that should be possible, yes…
Will have a look as soon as possible.

yuriy.sychenko’s picture

how do counter?

yuriy.sychenko’s picture

Priority: Normal » Critical

Please tell me how to place a counter

idflood’s picture

Priority: Critical » Normal

Well, this issue is clearly not critical, see http://drupal.org/node/45111
I will see if I can take some time today to create a first simple patch for this but I have urgent work to do before that.

yuriy.sychenko’s picture

Well, this issue is clearly not critical, see http://drupal.org/node/45111
I will see if I can take some time today to create a first simple patch for this but I have urgent work to do before that.

Sorry, that did this issue the critical, but still the answer :)
Thanks, looking forward.

P.S. I am sorry for my English

idflood’s picture

StatusFileSize
new1.07 KB

Here is a first patch, but there are still some work to do before committing this.

Things missing:
- An option to enable/disable the counter
- An option to define the separator which is hardcoded as " / ". The separator could also be a string like "of" for instance, so it should also be translatable.
- An option to define the position of the slide counter, before/after (like pager/controls)
- Manually test this functionality ( panels, views, multiple slideshows per page, ... )

yuriy.sychenko’s picture

Thank you very much, everything works super :)

yuriy.sychenko’s picture

yuriy.sychenko’s picture

Component: User interface » Code
Category: feature » support
Priority: Normal » Major
Status: Needs work » Needs review

Please help again, the thing is that when I add more fields, slideshow counter ceases to show the current slide in the first images fields, shows only the last images field.

idflood’s picture

StatusFileSize
new1.04 KB

Looks like it's working fine with multiple slideshows if we switch from the "slideshow" variable to options.$cont.

Let me know if the following patch fix your issue.

yuriy.sychenko’s picture

Category: feature » support
Priority: Normal » Major
Status: Needs work » Needs review

Thanks a lot, the new patch works like a charm. :)

-------------------------------------------------------

Is possible still know how to hook the bottom prev / next control to the picture depending on the height of the examples in the screenshots below :

the highest picture
http://s2.ipicture.ru/uploads/20121019/FAWW57WL.jpg

image smaller in height
http://s2.ipicture.ru/uploads/20121019/WnvC3mXR.jpg

it happens when I upload multiple images at different heights.
Is it possible to connect the counter and control prev / next to the image.

idflood’s picture

Category: support » feature
Priority: Major » Normal
Status: Needs review » Needs work

Good, thanks for testing the patch. It still needs some work like described in #6 so putting it back to needs work.

On the other hand, could you create a new issue for the problem you describe in #11?

yuriy.sychenko’s picture

Category: support » feature
Priority: Major » Normal
Status: Needs review » Needs work

On the other hand, could you create a new issue for the problem you describe in #11?

Yes, of course already created material - http://drupal.org/node/1817462

lamp5’s picture

Issue summary: View changes
Status: Needs work » Closed (works as designed)