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.
Hi
I'm loading all my nodes in a lightbox. All the links are in a view in the front page and each link is a thumbnail image with the following views FORMAT: Lightbox2 iframe: project_front_image->node page.
Is there a way to dynamically change the default width and height of the lightbox when displaying html content?
The node has always the same width and height when only displaying an image and a text but a different height when there's also video content.
What I'm trying to find out is if it is possible to do something like:
<?php if (!empty($node->field_video[0])): ?>
<?php
// BUILD LIGHTBOX WITH BIGGER HEIGHT
// may insert some javascript to change the height variable or something?
?>
<?php endif ?>
this is the web site I'm working on: www.pvxg.net
Thank you!
Comments
Comment #1
getstarted CreditAttribution: getstarted commentedsubscribed. i am also looking to change the size based on content type it displays.
Comment #2
rhathas CreditAttribution: rhathas commentedsubscribed. i want to add a resize function for lightframe. at least for the height.