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.
At the moment, i have manually implemented colorbox script into my theme to load page content if is bigger than a certain height.
I use the following code:
var boxHeight = document.getElementById('content').scrollHeight;
if(boxHeight > 267){
document.getElementById('main').style.display= 'none';
$(document).ready(function(){
$.fn.colorbox({inline:'true', href:'#content', width:'860px', onClosed:function(){document.getElementById('hidden_content').style.display= 'block';} });
});
}
Is there something similar already built into the colorbox module?
Comments
Comment #1
lsolesen CreditAttribution: lsolesen commentedI am pretty sure that nothing like your solution is build into the module at the moment. If you would like it to, you could try to create a patch.