I want to load new content into my lightmodal window when a user clicks a link in the window

I am trying to call a php file with query string.

All I get is the content loaded in the main window,

is there a way of specifying a lightmodal window or lightframe window?

Ideally I would like the content reloaded in the open lightbox.

hope this makes sense

thanks

Comments

stella’s picture

Have you read the documentation at http://drupal.org/node/252260 (lightframe) or http://drupal.org/node/276378 (lightmodal)? It should describe how to do this. If you run into any further problems, please let me know.

Cheers,
Stella

jabberwok’s picture

It seems it only works on node/* urls

when trying to load content only from a node

I still dont know how load a new node into an open lightbox2 frame or modal

stella’s picture

To open a page into a lightbox2 frame you need to have rel="lightframe" in the anchor, for a lightbox2 modal, you need rel="lightmodal".

Lightbox2 doesn't currently support opening any page (other than nodes) without the header, sidebars, etc, out of the box. However, if you create an appropriate template file in your theme (e.g. simple.tpl.php - based off the page.tpl.php one), and using the alternative method described on the documentation page linked to above, you should be able to get this effect.

stella’s picture

Status: Active » Fixed
jabberwok’s picture

thanks stella, I have it working now

Status: Fixed » Closed (fixed)

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