Hide controls and pager only if < 1 image and pager different than number?

Created on 15 June 2012, about 13 years ago
Updated 21 July 2025, 10 days ago

bug in field_slideshow.module

in lines 886 - 891

// Don't add controls if there's only one image
  if (count($variables['items']) == 1) {
    $variables['controls'] = '';
    $variables['pager'] = '';
  }
}

it should be:

if (count($variables['items']) == 1 && $variables['pager']['#pager'] != 'number') {
    $variables['controls'] = '';
    $variables['pager'] = '';
  }
}
Feature request
Status

Fixed

Version

2.0

Component

Code

Created by

🇸🇰Slovakia ali_b

Live updates comments and jobs are added and updated live.
Sign in to follow issues

Comments & Activities

Not all content is available!

It's likely this issue predates Contrib.social: some issue and comment data are missing.

Production build 0.71.5 2024