Jump to content

Integration Galleria.io


fibo

Recommended Posts

Hi!

 

I'm trying to install this little JS framework inside a CMS page:

https://galleria.io/

 

I copied the JS and CSS files of the packages inside the own folder of the theme.
I created a CMS page through the BO and set a path to some images.
I copied controller/front/CmsController.php inside override/controllers/front/CmsController.php

And made this change:

public function setMedia()
    {
        parent::setMedia();

        if ($this->assignCase == 1) {
            $this->addJS(_THEME_JS_DIR_.'cms.js');
        }

        $this->addCSS(_THEME_CSS_DIR_.'cms.css');

        if ((int)Tools::getValue(‘id_cms’) == 6) {
        $this->addJS(_THEME_JS_DIR_.‘galleria.js’);
        $this->addJS(_THEME_JS_DIR_.‘galleria.classic.min.js’);
        $this->addCSS(_THEME_CSS_DIR_.‘galleria.classic.css’);
        }
    }

Now, all I can see is a grid of static images.
 

I've done some errors in linking the JS?

 

Thanks

 

Link to comment
Share on other sites

Create an account or sign in to comment

You need to be a member in order to leave a comment

Create an account

Sign up for a new account in our community. It's easy!

Register a new account

Sign in

Already have an account? Sign in here.

Sign In Now
×
×
  • Create New...