Image gallery
MODx has many sophisticated image gallery snippets that allow you to create an image gallery anywhere in the site. For this example, we will be using the MaxiGallery
snippet. To get the image gallery working, install the snippet as explained in the chapter on snippets.
1. Download the snippet from the MODx repository at http://modxcms.com/extras/package/?package=259.
2. Extract the snippet.
3. Create a new snippet with the name
MaxiGallery
, and specify the contents ofmaxigallery.txt
as the snippet code.4. Copy the contents of the
assets
folder within the extracted folder to theassets
folder in the root of the MODx installation. Note that it contains two folders that are to be copied:assets/galleries
(Make sure thatassets/galleries
has write permissions)assets/snippets/maxigallery
5. To test the snippet, create a resource with the following details:
Field Name
Field Value
Title
Gallery
Uses template
Learning MODx default template
Document content
[!MaxiGallery!]
6. Preview...