# Bug: Structure entry display, field with dashes or underscores not rendered

**URL:** <https://forum.getkirby.com/t/bug-structure-entry-display-field-with-dashes-or-underscores-not-rendered/4948>\
**Category:** Questions\
**Tags:** v2\
**Created:** [August 11, 2016, 5:29pm UTC](https://forum.getkirby.com/t/bug-structure-entry-display-field-with-dashes-or-underscores-not-rendered/4948 "2016-08-11T17:29:51Z")\
**Posts on this page:** 7\
**Page:** 1

<div class="post-metadata">

**Author:** ![josh.peterson](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/josh.peterson/32/2649_2.png) [@josh.peterson](https://forum.getkirby.com/u/josh.peterson)\
**Post date:** [August 11, 2016, 5:29pm UTC](https://forum.getkirby.com/t/bug-structure-entry-display-field-with-dashes-or-underscores-not-rendered/4948/1 "2016-08-11T17:29:51Z")

</div>

The following code doesn’t work:

```auto
footer-links:
    type: structure
    limit: 3
    entry: >
      {{link-text}}<br />
      {{link-url}}
    fields:
      link-text:
        label: Link Text
        type: text
      link-url:
        label: Link Destination
        type: url

```

In the panel I just see literally this, so the templating isn’t working:

> {{link-text}}  
> {{link-url}}

This works fine:

```auto
footer-links:
    type: structure
    limit: 3
    entry: >
      {{linkText}}<br />
      {{linkUrl}}
    fields:
      linkText:
        label: Link Text
        type: text
      linkUrl:
        label: Link Destination
        type: url

```

Let me know if a github issue would be more appropriate for this sort of thing.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [August 11, 2016, 5:33pm UTC](https://forum.getkirby.com/t/bug-structure-entry-display-field-with-dashes-or-underscores-not-rendered/4948/2 "2016-08-11T17:33:52Z")

</div>

You can’t use dashes in field names, see [the docs](https://getkirby.com/docs/panel/blueprints/form-fields#field-names). I don’t know why it does not work with underscores, though.

---

<div class="post-metadata">

**Author:** ![josh.peterson](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/josh.peterson/32/2649_2.png) [@josh.peterson](https://forum.getkirby.com/u/josh.peterson)\
**Post date:** [August 11, 2016, 5:53pm UTC](https://forum.getkirby.com/t/bug-structure-entry-display-field-with-dashes-or-underscores-not-rendered/4948/3 "2016-08-11T17:53:03Z")

</div>

Oh thanks!

It actually does work with underscores - I see now that it didn’t work when I changed to underscore because the .txt file’s fieldnames weren’t updated for some reason. Changed those manually and now it works.

I think the reason I ended up using dashes in fieldnames was because I saw the names were being conformed to contain dashes in the .txt files. Wondering if there is a reason .txt needs to have dashes, rather than keeping it consistent.

Off-topic - it would be nice if when doing an “Edit” to data in a structure field, the modal fields were populated with the existing data. Since you can’t copy and paste the existing data from the panel easily, it’s kind of troublesome to make an edit to a field that has a long url, for example.

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [August 11, 2016, 5:59pm UTC](https://forum.getkirby.com/t/bug-structure-entry-display-field-with-dashes-or-underscores-not-rendered/4948/4 "2016-08-11T17:59:49Z")

</div>

> [@josh.peterson](#):
>
> Off-topic - it would be nice if when doing an “Edit” to data in a structure field, the modal fields were populated with the existing data. Since you can’t copy and paste the existing data from the panel easily, it’s kind of troublesome to make an edit to a field that has a long url, for example.

I’m afraid I don’t understand what you mean?

---

<div class="post-metadata">

**Author:** ![josh.peterson](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/josh.peterson/32/2649_2.png) [@josh.peterson](https://forum.getkirby.com/u/josh.peterson)\
**Post date:** [August 11, 2016, 6:32pm UTC](https://forum.getkirby.com/t/bug-structure-entry-display-field-with-dashes-or-underscores-not-rendered/4948/5 "2016-08-11T18:32:18Z")

</div>

You know what, I was seeing some weird behavior but I think it was an artifact of my earlier mistake.

Sorry, thanks for your time!

---

<div class="post-metadata">

**Author:** ![texnixe](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/texnixe/32/5754_2.png) [@texnixe](https://forum.getkirby.com/u/texnixe)\
**Post date:** [August 11, 2016, 6:46pm UTC](https://forum.getkirby.com/t/bug-structure-entry-display-field-with-dashes-or-underscores-not-rendered/4948/6 "2016-08-11T18:46:15Z")

</div>

Glad that everything works as expected now 🙂

---

<div class="post-metadata">

**Author:** ![distantnative](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/distantnative/32/11319_2.png) [@distantnative](https://forum.getkirby.com/u/distantnative)\
**Post date:** [February 6, 2025, 4:57pm UTC](https://forum.getkirby.com/t/bug-structure-entry-display-field-with-dashes-or-underscores-not-rendered/4948/7 "2025-02-06T16:57:21Z")

</div>


