Closed (fixed)
Project:
Lightbox2
Version:
6.x-1.9
Component:
Code
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
29 Apr 2009 at 20:09 UTC
Updated:
5 Jul 2009 at 03:30 UTC
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
Comment #1
stella commentedHave 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
Comment #2
jabberwok commentedIt 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
Comment #3
stella commentedTo open a page into a lightbox2 frame you need to have
rel="lightframe"in the anchor, for a lightbox2 modal, you needrel="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.
Comment #4
stella commentedComment #5
jabberwok commentedthanks stella, I have it working now