Support for Drupal 7 is ending on 5 January 2025—it’s time to migrate to Drupal 10! Learn about the many benefits of Drupal 10 and find migration tools in our resource center.
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.
Comment | File | Size | Author |
---|---|---|---|
#1 | views_slideshow-hide_pager_wrapper_if_only_1_slide_active-1809954-1.patch | 617 bytes | hkirsman |
Comments
Comment #1
hkirsman CreditAttribution: hkirsman commentedPatch 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:
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.
Comment #2
hkirsman CreditAttribution: hkirsman commentedComment #4
djewett CreditAttribution: djewett commentedI 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.
Comment #5
lunazoid CreditAttribution: lunazoid commentedPatch 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.
Comment #7
aaron CreditAttribution: aaron commentedCommitted to http://drupalcode.org/project/views_slideshow.git/commit/58c170e.