Currently when there is one slide, the links and navigations don't display, but the pause/play button is shown. This is more of an issue in flexslider library, but I think it is much easier to fix in the module.


MiroslavBanov’s picture

Status: Active » Needs review
627 bytes
None View

Patch attached.

alexkb’s picture

Works great for us, thanks MiroslavBanov!

+1 to commit.

GiorgosK’s picture

While we are at it why don't we make it more general ?

don't call the flexslider function at all when there is only one slide

for example the Touch (swipe) functionality on mobiles is working
when the Loop Slideshow is checked even with just one image/slide

is there a solution that encompasses all cases ?
when only 1 slide don't use flexslider at all or something similar
as an option or otherwise would be nice

pankajsachdeva’s picture

This patch worked for me.

+1 commit.

pankajsachdeva’s picture

Status: Needs review » Reviewed & tested by the community
minorOffense’s picture

I'll review it. Trying to think of a situation where this might cause a problem. Haven't thought of one yet.

Can you maybe add some additional text to the admin config screen for the pausePlay option explaining that it won't show if there's only a single slide?