Closed (fixed)
Project:
Lightbox2
Version:
6.x-1.9
Component:
User interface
Priority:
Normal
Category:
Support request
Assigned:
Unassigned
Reporter:
Created:
21 Jan 2009 at 18:20 UTC
Updated:
6 Apr 2009 at 12:28 UTC
Hello,
I would like to display internal pages in lightbox window, without sidebars, etc. So, I copied page-node-lightbox2.tpl.php to my theme (Marinelli) folder and created test and test links. Pages openss lightbox , but ignores page-node-lightbox2.tpl.php formatting, still using page.tpl.php markup.
Probably I missed something easy and important. Please help!
Thank you!
Comments
Comment #1
yurg commentedOh, so sorry. Proper links formatting:
and
Comment #2
stella commentedTwo things:
A) the links need to be like:
Note, the addition of the
/lightbox2to the node path. This is normally handled by lightbox2 module, if using an automatic image handler that is opening the node content. If these are manually created links, you'll need to add this in. Also note,rel="lightframe"- this is required if you want to open a full html page in a lightbox. If you're just opening a div or similar in a lightbox, then you can use lightmodal.B) In D6, after making any changes to your theme, either by adding or modifying template files, you will need to rebuild the theme registry. The Devel module has a handy link for this. Failing that you could clear your Drupal cache on the performance settings page.
Cheers,
Stella
Comment #3
yurg commentedMarvelous! Thank you, Stella. Combination of
/lightbox2andrel="lightframe"was the nested piece of puzzle. Thank you again!Comment #4
stella commentedComment #6
keesje commentedI like this feature, but isn't the "/lightbox2" added to the URL introducing yet another duplicate content pitfall?
My suggestion is to parse this as a GET attribute in the plain HTML way like: node/@?lightbox2 = true.