Results 1 to 8 of 8

Thread: mediabox script

  1. #1
    New user
    Join Date
    09-15-09.
    Posts
    13

    Default 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

  2. #2
    User
    Join Date
    10-05-09.
    Location
    Dallas, TX, US
    Posts
    70

    Default 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.

  3. #3
    New user
    Join Date
    09-15-09.
    Posts
    13

    Default 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

  4. #4
    Core developer
    Official Contao Team
    leo's Avatar
    Join Date
    06-04-09.
    Location
    Wuppertal, Germany
    Posts
    201

    Default Re: mediabox script

    External pages do not support the rel attribute yet -> ticket.

  5. #5
    New user
    Join Date
    09-15-09.
    Posts
    13

    Default Re: mediabox script

    do internal links work?

  6. #6
    Core developer
    Official Contao Team
    leo's Avatar
    Join Date
    06-04-09.
    Location
    Wuppertal, Germany
    Posts
    201

    Default 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.

  7. #7
    New user
    Join Date
    09-15-09.
    Posts
    13

    Default 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

  8. #8
    New user
    Join Date
    03-04-11.
    Posts
    12

    Default 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

Bookmarks

Posting Permissions

  • You may not post new threads
  • You may not post replies
  • You may not post attachments
  • You may not edit your posts
  •