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])): ?>
           // 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!


getstarted’s picture

subscribed. i am also looking to change the size based on content type it displays.

rhathas’s picture

subscribed. i want to add a resize function for lightframe. at least for the height.