# CMS Error help please

**URL:** <https://forums.realmacsoftware.com/t/cms-error-help-please/57411>\
**Category:** Elements\
**Created:** [August 22, 2026, 11:04am UTC](https://forums.realmacsoftware.com/t/cms-error-help-please/57411 "2026-08-22T11:04:31Z")\
**Posts on this page:** 6\
**Page:** 1

<div class="post-metadata">

**Author:** ![PMUK](https://avatars.discourse-cdn.com/v4/letter/p/7993a0/32.png) [@PMUK](https://forums.realmacsoftware.com/u/PMUK)\
**Post date:** [August 22, 2026, 11:04am UTC](https://forums.realmacsoftware.com/t/cms-error-help-please/57411/1 "2026-08-22T11:04:31Z")

</div>

I am just starting a new project and have literally just started, I am getting an error that I do not know what is causing this. I have one page only, 1 md file only. I can not publish file here as it’s commercially sensitive.  
I have the “collection” I am building rendering but I am getting a YAML error. Here is image of error and a copy of my simple code only. I do not want to start adding other bits to md file until I get rid of this error. TIA for your help @dan @ben.

 ![Screenshot 2026-08-22 at 11.59.22](https://europe1.discourse-cdn.com/flex005/uploads/realmacsoftware1/original/3X/5/9/59fd1f654a5a9384c5eae06546d08b736ebef1c4.jpeg)

```auto
---
title: "Davey-T"
image:
  src: /clots/Daveyt.png
  alt: 'Blood Clot - Deep Vein Thrombosis'
  width: 800
  height: 800
  
---

```

---

<div class="post-metadata">

**Author:** ![Pegasus](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/pegasus/32/25035_2.png) [@Pegasus](https://forums.realmacsoftware.com/u/Pegasus)\
**Post date:** [August 22, 2026, 11:07am UTC](https://forums.realmacsoftware.com/t/cms-error-help-please/57411/2 "2026-08-22T11:07:17Z")

</div>

```auto
title: "Davey-T"
image:
  src: "/clots/Daveyt.png"
  alt: "Blood Clot - Deep Vein Thrombosis"
  width: "800"
  height: "800"

```

try this

---

<div class="post-metadata">

**Author:** ![PMUK](https://avatars.discourse-cdn.com/v4/letter/p/7993a0/32.png) [@PMUK](https://forums.realmacsoftware.com/u/PMUK)\
**Post date:** [August 22, 2026, 11:10am UTC](https://forums.realmacsoftware.com/t/cms-error-help-please/57411/3 "2026-08-22T11:10:20Z")

</div>

> [@Pegasus](#):
>
> ```auto
> title: "Davey-T"
> image:
> src: "/clots/Daveyt.png"
> alt: "Blood Clot - Deep Vein Thrombosis"
> width: "800"
> height: "800"
> 
> ```

Sometimes I have to give my head a wobble! I closed the project down went for a little break made myself a coffee, came back opened file and error has gone, I also tried your code and that worked too. THANKS for taking the time to help an old man!

---

<div class="post-metadata">

**Author:** ![PMUK](https://avatars.discourse-cdn.com/v4/letter/p/7993a0/32.png) [@PMUK](https://forums.realmacsoftware.com/u/PMUK)\
**Post date:** [August 22, 2026, 11:28am UTC](https://forums.realmacsoftware.com/t/cms-error-help-please/57411/4 "2026-08-22T11:28:08Z")

</div>

@Pegasus sorry to bother I have a code line date: “yyyy” but it showing as “dd/mm/yyyy” its in md file but I can not see anywhere just to make this “yyyy”. Any help? TIA

---

<div class="post-metadata">

**Author:** ![Pegasus](https://dub1.discourse-cdn.com/flex005/user_avatar/forums.realmacsoftware.com/pegasus/32/25035_2.png) [@Pegasus](https://forums.realmacsoftware.com/u/Pegasus)\
**Post date:** [August 22, 2026, 11:37am UTC](https://forums.realmacsoftware.com/t/cms-error-help-please/57411/5 "2026-08-22T11:37:53Z")

</div>

You need to handle that through the Twig syntax.

For example, if your YAML frontmatter contains:

date: “2026-08-15” then using: {{ item.date }}

will naturally output the full date exactly as it is stored.

If you only want to display the year, you need to adjust your Twig syntax accordingly.

You need to handle this through the Twig syntax.

For example, if your YAML frontmatter looks like this:  
date: “2026-08-15” then using: {{ item.date }}

will naturally output the full date exactly as it is stored.

If you only want to display the year, you can use:  
{{ item.date|date(“Y”) }}

This will output: 2026

---

<div class="post-metadata">

**Author:** ![PMUK](https://avatars.discourse-cdn.com/v4/letter/p/7993a0/32.png) [@PMUK](https://forums.realmacsoftware.com/u/PMUK)\
**Post date:** [August 22, 2026, 11:59am UTC](https://forums.realmacsoftware.com/t/cms-error-help-please/57411/6 "2026-08-22T11:59:48Z")

</div>

THANKS I just have date: in my md file and I just had {{date}} in field. This was giving a dd/ymm/yyy output.  
I have no dates any where in md file set up at all just name. I tried your code and I now get dd/mm/yyyy 00:00, TIA
