When reaching the last image of the group there should be no more Next button. The same for the Previous button when reaching the first image.

I think there should be a possibility to set loop:true to loop:false but I couldn't find it.

Is there any other way to get the desired result?

Comments

radimklaska’s picture

There is hook_colorbox_settings_alter.
Create custom module and in mymodule.module do this:

function mymodule_colorbox_settings_alter(&$settings, &$style) {
  // Disable slideshow looping
  $settings['loop'] = FALSE;
}

Look at colorbox.api.php for more info.

frjo’s picture

Status: Active » Fixed

Status: Fixed » Closed (fixed)

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

almissh’s picture

Issue summary: View changes

It works! Thanks