I’m not getting the Image Slider to work with the CMS. I have it set to “CMS Gallery”. I have the Image Slider within an Item pointed at a markdown that has the gallery field. Perhaps I am not formatting the gallery field correctly, but I’ve tried many variations that searches (web and AI) have suggested and none seem to work. What is the “Elements way” to set up the front matter to pull in pictures for the Image Slider? I’d like alt tags and links associated, too.
In each post’s frontmatter you need to include a gallery property that should be an array of items. Here’s an example:
---
title: My First Post
date: "2025-09-17"
gallery:
- src: "images/project1.jpg"
alt: "Exterior view of the finished building"
- src: "images/project2.jpg"
alt: "Interior design showcasing the main lobby"
- src: "images/project3.jpg"
alt: "Construction phase with scaffolding"
---
Sorry, been a way from the computer for a few days. I’m pretty sure this is what I had done but without the ““ around the names. I will try that…. (otherwise I had done a gallery array as formatted) EDIT: tested with quotes for my src and this worked! Now to test links…
1 Like