O'Reilly logo

Instant Galleria How-to by Nathan Van Gheem

Stay ahead with the world's most comprehensive technology and business learning platform.

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, tutorials, and more.

Start Free Trial

No credit card required

Using the Flickr plugin (Medium)

Here we will learn how we can use and extend the flickr plugin to display a flickr gallery with Galleria.

Getting ready

We're going to use the myfirstgallery.html file and modify the example again, though it's fine to use whatever gallery implementation is available if preferred.

How to do it...

  1. Create a basic gallery with Galleria's flickr plugin using the following JavaScript code inside our head tag:
    <script src="http://code.jquery.com/jquery.min.js"></script>
    <script src="../galleria-1.2.8.min.js"></script>
    <script src="../plugins/flickr/galleria.flickr.min.js">
    </script>
    <script type="text/javascript">
      $(document).ready(function(){
        Galleria.loadTheme(
          '../themes/classic/galleria.classic.min.js');
        Galleria.run('#galleria', ...

With Safari, you learn the way you learn best. Get unlimited access to videos, live online training, learning paths, books, interactive tutorials, and more.

Start Free Trial

No credit card required