Hi all,

I'm hoping someone can help me figure out what I'm doing wrong or if this just doesn't work. I have a view and have downloaded the trigger patch (http://drupal.org/node/575926 #9) and followed the instructions (http://drupal.org/node/588640 #7) but it still links to the actual node. I can't get the content to open in the lightbox. It builds the following html:

<a href='http://localhost:8888/jpDEV2/create_portfolios #lightbox-popup-1'  rel='lightmodal[lightbox-popup-{$this->view->name}|width:600px;height:400px]'><a href="/jpDEV2/node/24">view</a></a>
                <div style='display: none;'><div id='lightbox-popup-1' class='lightbox-popup'>Dolore Caecus
</div></div>          </td>

Any advice? Let me know if there is some other information that would be helpful if I haven't provided it.

Thanks!

Comments

srobert72’s picture

Category: support » bug

Subscribing
I have same error.

Some PHP code is not interpreted as "{$this->view->name}"

stella’s picture

Category: bug » support
Status: Active » Postponed (maintainer needs more info)

I've made changes to lightbox2 to this bit of code. So either check it out of CVS, or wait for a new dev release to be made (should happen within 12 hours).

Also, clearing your Drupal cache may help.

srobert72’s picture

I've done it.
Wrong PHP code has disapeared and now it works.

Thank you

But this LightBox display doesn't respect LightBox2 global settings.
We can customize width and height. But other options like buttons don't use LightBox2 global settings.
Display is different than if I use LightBox2 widget for ImageField in Views.

I supposed we could change content and display details link in LightBox popup, but others settings will be as default.

Could it be fixed ?

stella’s picture

Status: Postponed (maintainer needs more info) » Fixed

This isn't going to be the same as the imagefield settings. Imagefields have a rel set to "lightbox" which means only images can be opened in the lightbox. This new views trigger uses rel="lightmodal" which means any kind of data should be able to be displayed within the lightbox. However, this means they look different, and you will need to implement your own theming to get it to look the way you want.

jaron’s picture

the new .dev works great. thanks.

Status: Fixed » Closed (fixed)

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

mikiciuk’s picture

Since the trigger opens a lightmodal, how can this be changed to rel="lightbox" ?

I'm assuming its somewhere in lightbox2_handler_field_lightbox2.inc