Come together with the global Drupal community in Rotterdam, 28 Sept – 1 Oct 2026. Sessions, contribution, connection, and Early Bird savings until 8 June.
Hi Stella, sorry, I think I made this ticket a bit prematurely. I think the code is actually ok with the html characters being made safe (code below just in case). I now realise that the problem I've actually got is that lightbox is not being called into the page. Shouldn't there be some css and js files included? I've been through all the settings etc. What variable (i.e. $footer) are these files included into? This is the latest devel version upgraded from the latest official release about an hour ago.
You need to ensure the pages lightbox2 is loaded on is correctly configured - please see the "page specific lightbox2 settings" on admin/settings/lightbox2.
By default Lightbox2 js files are loaded in the header and so will be in $scripts variable in the theme layer. You can change this so it is loaded in the footer instead under the "Advanced settings" on admin/settings/lightbox2. It's probably in the $footer or $closure variables in this case. The css files are always in $styles variable.
I am sooo sorry, I had already been through all of that and misread it, I thought I had told it to load on every page but in actual fact I had selected the other. That was the first thing I thought of when looking. Thanks for your help and sorry I wasted your time.
Would also like to say that I am very impressed and very grateful at your quick responses, some people normally take days to respond. You've saved me a lot of time!
Comments
Comment #1
stella commentedCan you ensure that you are using the latest dev version of the module? Please also paste the code within <code> tags. More info needed.
Cheers,
Stella
Comment #2
willeaton commentedHi Stella, sorry, I think I made this ticket a bit prematurely. I think the code is actually ok with the html characters being made safe (code below just in case). I now realise that the problem I've actually got is that lightbox is not being called into the page. Shouldn't there be some css and js files included? I've been through all the settings etc. What variable (i.e. $footer) are these files included into? This is the latest devel version upgraded from the latest official release about an hour ago.
Comment #3
stella commentedYou need to ensure the pages lightbox2 is loaded on is correctly configured - please see the "page specific lightbox2 settings" on admin/settings/lightbox2.
By default Lightbox2 js files are loaded in the header and so will be in $scripts variable in the theme layer. You can change this so it is loaded in the footer instead under the "Advanced settings" on admin/settings/lightbox2. It's probably in the $footer or $closure variables in this case. The css files are always in $styles variable.
Cheers,
Stella
Comment #4
willeaton commentedI am sooo sorry, I had already been through all of that and misread it, I thought I had told it to load on every page but in actual fact I had selected the other. That was the first thing I thought of when looking. Thanks for your help and sorry I wasted your time.
Would also like to say that I am very impressed and very grateful at your quick responses, some people normally take days to respond. You've saved me a lot of time!
thanks
Will
Comment #5
willeaton commented