# Image Slider & CMS

**URL:** <https://forums.realmacsoftware.com/t/image-slider-cms/51331>\
**Category:** Elements CMS\
**Created:** [September 25, 2025, 11:53pm UTC](https://forums.realmacsoftware.com/t/image-slider-cms/51331 "2025-09-25T23:53:17Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![Jupeman](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@Jupeman](https://forums.realmacsoftware.com/u/Jupeman)\
**Post date:** [September 25, 2025, 11:53pm UTC](https://forums.realmacsoftware.com/t/image-slider-cms/51331/1 "2025-09-25T23:53:17Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![ben](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/ben/32/28488_2.png) [@ben](https://forums.realmacsoftware.com/u/ben)\
**Post date:** [September 26, 2025, 12:07pm UTC](https://forums.realmacsoftware.com/t/image-slider-cms/51331/2 "2025-09-26T12:07:34Z")

</div>

In each post’s frontmatter you need to include a `gallery` property that should be an array of items. Here’s an example:

```auto
---
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"
---

```

---

<div class="post-metadata">

**Author:** ![Jupeman](https://avatars.discourse-cdn.com/v4/letter/j/67e7ee/32.png) [@Jupeman](https://forums.realmacsoftware.com/u/Jupeman)\
**Post date:** [September 30, 2025, 7:02pm UTC](https://forums.realmacsoftware.com/t/image-slider-cms/51331/3 "2025-09-30T19:02:33Z")

</div>

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…
