We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 15114
    • 102 Posts
    Hi

    By default, the Galleriffic use the CSS /assets/components/gallery/packages/galleriffic20/css/galleriffic-2.css

    How can I specify another file ?


    Julien
      • 20288
      • 132 Posts
      Looks like it’s on or around Line 89 in core/components/gallery/model/gallery/plugins/galleriffic.class.php
        • 3440
        • 17 Posts
        You could also substitute the following code line (line 91 in version 1.2.1)

        $this->modx->regClientCSS($this->gallery->config['assetsUrl'].'packages/galleriffic20/css/galleriffic-2.css');


        with this one:

        $this->modx->regClientCSS($this->gallery->config['assetsUrl'].'packages/galleriffic20/css/'.$this->modx->getOption('gallerifficCss',$this->config,'galleriffic-2.css'));


        Then you can use the parameter &gallerifficCss like:

        [[!Gallery?
        &album=`My Album`
        &plugin=`galleriffic`
        &gallerifficCss=`my_gallerific.css`]]


        This allows usage of different Gallerific layouts in a website ;-)

        In case splittingred reads this, maybe could you consider adding this in a future release ?..

        Regards
          • 28215
          • 4,149 Posts
          Quote from: bitbox at Jun 29, 2011, 10:03 PM

          In case splittingred reads this, maybe could you consider adding this in a future release ?..

          I tend to add things that are added to the Gallery issue tracker, *hint-hint*: wink

          http://github.com/splittingred/Gallery/issues/
            shaun mccormick | bigcommerce mgr of software engineering, former modx co-architect | github | splittingred.com
            • 3440
            • 17 Posts
            Thanks splittingred, it’s filed as issue #116 wink

            Cheers
              • 21395
              • 91 Posts
              And it's been done.

              [[!Gallery? &plugin=`galleriffic`&gallerifficCss=`/assets/components/gallery/packages/galleriffic20/css/galleriffic-5.css`]]
              


              Does the trick. Not yet documented.

              Thanks Gentlemen.
                MODX Revolution 2.6.5-pl (traditional)

                Hosted on MODX Cloud

                Skype: nicbaldeagle