Results 1 to 2 of 2

Thread: Mediabox Config

  1. #1
    User PaoloB's Avatar
    Join Date
    06-19-09.
    Location
    Italy
    Posts
    238

    Default Mediabox Config

    Hi
    i use Mediabox Advanced on Contao 2.11.5

    Usually i create a custom version of the moo_mediabox file and write my customizations.

    example
    Code:
    Mediabox.scanPage = function() {
      var links = $$('a').filter(function(el) {
        return el.rel && el.rel.test(/^lightbox/i);
      });
      $$(links).mediabox({
      		counterText: '({x} | {y})'
      	, null, function(el) {
        var rel0 = this.rel.replace(/[[]|]/gi,' ');
        var relsize = rel0.split(' ');
        return (this == el) || ((this.rel.length > 8) && el.rel.match(relsize[1]));
      });
    };
    window.addEvent('domready', Mediabox.scanPage);
    Mediabox 1.4.6 does not read the "counterText" parameter
    I changed the version and activated the 1.2.5 and works fine ...

    Any suggestions?
    With version 1.4.6 configuration has changed?
    On the site mediabox I found nothing

    Thanks
    Paolo B.
    Contao ambassador
    ContaoCms.it - Sito di riferimento per la comunità italiana

  2. #2
    User Andreas's Avatar
    Join Date
    07-11-09.
    Location
    Mönchengladbach
    Posts
    499

    Default Re: Mediabox Config

    Web-Development, Freelancer, Burgtech, XHTML, HTML5, CSS, PHP, Javascript, MooTools, MySQL and more
    Amazon wishlist

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
  •