An image gallery from a folder
Twelve photos from a folder of the Media library.
Life cycle: Build, example 24 of 35. Worked out on the Fit & Healthy site of Exponential 6.0.15+.
Contents
In the Layouts editor
- Open Layouts > Layouts and the layout Landing Page / Home; the editor opens it in a draft.
- Open the block palette (+ at the top left) and drag Gallery (group Gallery) into the zone
main. - Select the block, open the Design tab and fill Parent node ID, Limit (default 12), Class filter, Image attribute identifier (default
image), Thumbnail size alias (defaultsmall). - Publish layout. The pages that use the layout show the block on their next view.
The media design dispatches galleries to explayouts/block/gallery/ (slider, grid_gallery, thumb_gallery, sushi_bar).
With templates
- The site's NG Gallery class (for example "10 Workout Terms You Need To Know" in Fitness) is a gallery as content, shown by its full view.
Which to choose
Photos for a page: the block. A gallery that is a story of its own: an NG Gallery item.
Check
- A new image in the folder shows up after publishing.
Related pages
- How a block maps to its templates
- Build examples, every page
- Free documentation: this page is free to copy, translate and improve under the GNU FDL 1.3.
Become an Exponential Partner
Partners share their information, provide funding, contribute back and develop the products with us, and that is how Exponential grows. A partner website and dashboard are planned for mid-2027: please become a partner today to speed up our growth rate and land new features faster.