If you enable "Hide pager if there is only one slide" you get:

<div class="views-slideshow-controls-top clearfix">
  <div id="widget_pager_top_ut_page_elements-panel_pane_4" class="views-slideshow-pager-fields widget_pager widget_pager_top views_slideshow_pager_field views-slideshow-pager-field-processed"></div>
</div>

If you have styles attached to the pagers wrapper (maby some padding and background), you get small rectangle floating around.

Support from Acquia helps fund testing for Drupal Acquia logo

Comments

hkirsman’s picture

Status: Needs review » Active
FileSize
617 bytes

Patch attached.

Now that I think about it, why would anybody need a pager if there's only 1 slide? It looks ugly and useless. If you check code in jquery.cycle there a termination if less than 2 slides are found:

		if (els.length < 2) {
			log('terminating; too few slides: ' + els.length);
			return;
		}

What you think? I suggest either removing that option from the module or enable it by default.

Edit: Maby design requires to have a pager so removing that option wouldn't be such a good idea. Need thoughts from others.

hkirsman’s picture

Status: Active » Needs review

Status: Active » Needs review
djewett’s picture

Issue summary: View changes

I use a single slide in the following case:
I have one field shared across numerous content types which is shared on all pages via a page template. This allows me to show a slideshow for some items, a single image for others, and nothing for the majority of nodes using these content-types. I can do this using one shared field.

lunazoid’s picture

Status: Needs review » Reviewed & tested by the community

Patch works great! Our slideshows have variable slide counts, so for those with just a single slide (at the moment,) having that rectangle floating around just looked bad.

  • aaron committed 58c170e on 7.x-3.x
    Issue #1809954 by hkirsman: fixed "Hide pager if there is only one slide...
aaron’s picture

Status: Reviewed & tested by the community » Fixed

Status: Fixed » Closed (fixed)

Automatically closed - issue fixed for 2 weeks with no activity.