Here is my issue... I have lightbox setup to trigger HTML content (node) on a view imagecache preset. It works fine under iframe except lightbox displays my theme header and footer in the iframe... Why is this happening?

I would like just the node and nothing else to display. The iframe seems to be loading the entire website header and all, in the iframe when just the node should appear. Any suggestions?

Comments

back from 7’s picture

FIXED!!!

Solution:

1# Placed 'page-node-lightbox2.tpl.php' from LIGHTBOX modules folder into my theme folder.

2# Deleted all code

3# Copied 'node.tpl.php' code and pasted

4# Took head section from 'page.tpl.php' , putting before 'node.tpl.php' code

5# Saved 'page-node-lightbox2.tpl.php' , put in my theme folder and VOLLA!

madeinvic’s picture

Works brilliantly! Thanks!

krishnaa’s picture

Hi Joedevdrupal,

I tried the solution which you provided above and it is fantastically working fine for me on a fresh drupal installation (at my local machine ),but i didn't get it working on one of my staging server.I am using 6.x-1.x-dev version of the Lightbox2.
Thanks in advance.

Regards,
Krishna

lubnax’s picture

subscribing

back from 7’s picture

Try to delete the lightbox .tpl file in the module directory... Make sure your theme folder has the .tpl file there... I have noticed that Drupal is mostly trial and error, but once you find the solution its golden!

ppcc’s picture

This only seems to work if the link is in the format /node/xxx/lightbox2

Any ideas how to get it to work with aliases?

paranormals’s picture

subscribing

ppcc’s picture

Anyone?

stella’s picture

Status: Active » Closed (works as designed)
kadhir2020’s picture

I followed the steps as you suggested.But still the entire page is loaded again.
I proceed clear cache
saved the theme
cron runed
module saved.But still entire page is loaded.Please any other way i need to do .