-
mediabox script
hi, i'd like to open a light box directly from the main navigation. (typolight 2.8)
i can set the page type to external link, but how do i tell typolight, that i want to open it in a lightbox (not in a new window)?
in the normal hyperlink settings this is handled by this code xyz code.
but i do not want the user to click on the navigation item and then on a hyperlink...
any ideas?
thanks
joergmark
-
Re: mediabox script
I'm not too familiar with the mediabox script itself (I prefer http://colorpowered.com/colorbox/ as a jQuery guy) but the general approach should be the same...
Edit the page under Site Structure and give it a class ("lightbox") for example. When it is rendered by the nav module, the class should be attached.
At some point during page load, the mediabox event handler is instructed by TL to act on the rel attribute; have it act on your new class as well. I'm not sure exactly where TL's call to the mediabox script is located, I'm afraid.
-
Re: mediabox script
ok, i can give it the lightbox class, but where do i define the rel parameters?
when i have defined the page as external link there is no option for this.
joerg-mark
-
Re: mediabox script
External pages do not support the rel attribute yet -> ticket.
-
Re: mediabox script
-
Re: mediabox script
Pages do not support the rel attribute at all. It does make sense for external redirects but not really for internal pages. You can always modify the template, though.
-
Re: mediabox script
hi leo, i think it would make sense, because in my case i could have a superimposed different layout for e.g. a blog without having to change my general lpage layout.
www.jmk-media-solutions.de
has a landscape layout with fixed height, which would be desturbed by a layout change, by superimposing content this would feel more consequent designwise...
agree?
all the best
joerg-mark
-
Re: mediabox script
Can i use mediabox to open a pop up on the homepage.
How can i go about? any tuts for a newbie?
thank you in advance