Skip to content

Simple & Advanced Tutorials to integrate Masonry with MODX

Notifications You must be signed in to change notification settings

dubrod/MODX-Masonry

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

30 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

MODX-Masonry

Simple & Advanced Tutorials to integrate Masonry with MODX

Demo URL = http://masonry.clients.modxcloud.com/

Lightbox URL = http://masonry.clients.modxcloud.com/index.php?id=2

Auto Lightbox URL = http://masonry.clients.modxcloud.com/index.php?id=3

Masonry Repo = https://github.com/desandro/masonry

##Goals

  1. Basic Starter DIY Tutorials
  2. Vanilla JS Lightbox [COMPLETED]
  3. Auto-watch images in a folder [COMPLETED]
  4. Dropbox API
  5. Mobile Upload
  6. More Themes

##Manual Basic Installation

  1. Upload - assets/js/masonry.pkgd.min.js

  2. Upload - assets/css/demo.css

  3. Create - assets/img (naming convention optional)

  4. Create Chunk - MasonryConfig (copy from the repo)

  5. Add to <head> -

    [[$MasonryConfig? &width=`200` &theme=`demo`]]
    
  6. Add Container HTML

    <div class="container" id="mason">
      <div class="masonry-item" style="background-image: url([[phpthumbof? &input=`folder/file.jpg` &options=`&w=400&zc=0&aoe=0&far=0`]]);"></div>
    </div> <!-- /#mason -->
    
  7. the phpthumbof width should be double the width in the chunk

About

Simple & Advanced Tutorials to integrate Masonry with MODX

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published