Hi all,
Does anyone know if it is possible to load a swf inside a lightbox in Contao by default?
If not, is this possible at all?
Thank you!
Hi all,
Does anyone know if it is possible to load a swf inside a lightbox in Contao by default?
If not, is this possible at all?
Thank you!
I found a lightbox called "LightWindow" 2.0 that allows swf files to be loaded.
I copied the required file to my server, and also added the necessary line to the header of of my template in contao.
However when I try to add the following href tags:
Then after clicking on submit, Contao filters it all out.Code:Link Name
How can I get Contao to keep those tags in?
Thanks!
Sorry about my monologue.Originally Posted by partisanentity
I figured it out, I placed it inside a html box.
But nothing seems to be happening, wonder why...
Final comment from me
In case anyone else is interested, it works and plays nice with Contao.
I vote this the best 1on0 conversation in Contao :lol:
not any more :D
Yes sorry about that, but eventually it worked, and I wanted to give back to the community that has helped me so much
I noticed something strange.
LightWindow works nicely in Firefox.
But IE8 is not loading the lightwindow.
I added the links to css and javascript files in the header as is usual:
Then I added my link to a swf file using the correct lightwindow parameters:Code:<script type="text/javascript" src="http://www.test.com/_includes/lightwindow/javascript/lightwindow.js"></script> <link rel="stylesheet" href="http://www.test.com/_includes/lightwindow/css/lightwindow.css" type="text/css" media="screen" />
Theoretically this should not be a problem for IE8 or?
Do you have a link to the page?
The only thing I can think of is IE uses a <object> tag to recognise swf parameters, the rest use <embed>, but I don't know how that fits with your js, the lightbox etc
Have you tried something like below using mediabox. Just select mediabox in the layout. Worked on my install without the need for additional extension.
300 x 300 being the width and heightCode:<a rel="lightbox[lightbox 300 300]" href="tl_files/samcam/flash/flash.swf"> click here swf </a>
I tried
But this only opens a white box with nothing in it.Code:test
I tried opening an image and it worked with the lightbox. It just doesnt seem to do anything if I link it to the flash file.
You need to use moo_mediabox not moo_slimbox - check you have that selected in the layout.[attachment=0:268s49cw]moo.JPG[/attachment:268s49cw]
I double checked, I did have moo_mediabox ticked.Originally Posted by vinchenzison
But only a white box appears if I link to the swf strangely enough.
Your rel="lightbox[flash 945 668] does not have closing "
It's not missing on the actual website, I simply typed here into the forum wrongOriginally Posted by ramjet
Can you post a link?
Does it matter that it's inputed as lightbox[flash instead of lightbox[lightbox ?Originally Posted by ramjet
Bookmarks