The following code works fine when on the page but does not when in the Google Map info bubble:

l($row->title, 'node/' . $row->nid . '/lightbox2', array('attributes' => array('rel' => 'lightframe')))

Any thoughts on a solution?

Comments

milehighlife’s picture

I still haven't found a solution to this issue. I believe it's an issue of trying to invoke Lightbox from within the Google info bubble and that there's a Javascript issue here. Any thoughts?

stella’s picture

Status: Active » Fixed

probably because the Google Maps bubble is added to the page using ajax or some other javascript, and the lightbox2 javascript has run before it and processed all rel="lightframe" attributes present on the page at that time. So you need to use Drupal.attachBehaviors() to attach lightbox2 behaviors to the new page context/content.

Status: Fixed » Closed (fixed)

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

dan1eln1el5en’s picture

Version: 6.x-1.9 » 7.x-1.x-dev

I have similar issue, did you find a solution or rather how did you fix it ?