I am a very new Orchard user and so far have been extremely impressed by it.
I would very like to use the Lightbox script for use with images on my site and have been trying to customise it accordingly. So far, I have managed to successfully inject the scripts and stylesheet links by modifying the Layout.cshtml file
of my theme as follows (I did have to guess a little bit here, as I could not find much documentation of these objects and what it is I'm actually doing; it might be that I simply could not find the relevant page but it would be great if a topic could be written
This seems to work extremely well and I can see the links placed into the head section of the generated pages. Of course, this does mean that only the theme
I have modified will get the links injected, so I was wondering if there was a better, more generic way of doing this?
However, my main problem is that I can't actually get an image to display in a lightbox as hoped. Having read the documentation for Lightbox, it would appear that the most likely reason that this is happening is that the initLightbox() method
is not being called. The recommended (and I would assume only) way of accomplishing this is placing a call to it in the onLoad attribute of the body tag.
Despite searching, I have been unable to find a way of doing this and would therefore be very grateful if anybody could help me.
Finally, in the longer term, I very much hope that the proposed Image Gallery module will be released and that Orchard will continue to grow!