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.
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
Comment #1
radimklaskaThere is hook_colorbox_settings_alter.
Create custom module and in mymodule.module do this:
Look at colorbox.api.php for more info.
Comment #2
frjo CreditAttribution: frjo commentedComment #4
almissh CreditAttribution: almissh commentedIt works! Thanks