CMS Image - How to set target

---
title: "Herr Grau zieht um"
date: "2025-08-24"
tags: [CORNROW, D-Wurf, Herr Grau, Loki]
categories: []
author: Ulrich
image:
    src: /d-wurf/cornrow_d-wurf_herr_grau_zieht_aus.jpg
    alt: CORNROW D-Wurf Herr Grau zieht aus
imagelink: /artikel/?item=herr_grau_zieht_um
imagelinktarget: _self
imagelinktitle:
---

This is the header of a CMS article.

How should i set the link, target and the title? if i add target to the Custom Attributes i get an error message: Illegal Key

You’ve caught a bit of an edge case issue here.

The problem is that Elements writes to the target attribute via the “Open in New Window” checkbox. So target is a reserved attribute that you can’t manually set.

We’d have to update Elements to allow you to set a custom target attribute — I’ll add a ticket for us to investigate this, however, I can’t say when we’ll be able to get to this one.

Thanks @ben

This would be important. Because sometimes you have an image link in the CMS that points to its own page (_self), and sometimes it’s an external link (_blank).

Perhaps the solution would be to specify “target” in the list of options, so that it takes priority and the clickable option isn’t used?

My whish:

---
title: "Herr Grau zieht um"
date: "2025-08-24"
tags: [CORNROW, D-Wurf, Herr Grau, Loki]
categories: []
author: Ulrich
image:
    src: /d-wurf/cornrow_d-wurf_herr_grau_zieht_aus.jpg
    alt: CORNROW D-Wurf Herr Grau zieht aus
    link: /artikel/?item=herr_grau_zieht_um
    target: _self
    title: Linktitle
---