# Panel field 'label', can't get it to work

**URL:** <https://forum.getkirby.com/t/panel-field-label-cant-get-it-to-work/3168>\
**Category:** Questions\
**Tags:** v2\
**Created:** [January 30, 2016, 9:31pm UTC](https://forum.getkirby.com/t/panel-field-label-cant-get-it-to-work/3168 "2016-01-30T21:31:19Z")\
**Posts on this page:** 10\
**Page:** 1

<div class="post-metadata">

**Author:** ![Strictandfun](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@Strictandfun](https://forum.getkirby.com/u/Strictandfun)\
**Post date:** [January 30, 2016, 9:31pm UTC](https://forum.getkirby.com/t/panel-field-label-cant-get-it-to-work/3168/1 "2016-01-30T21:31:19Z")

</div>

Hi!

I have a blueprint, but the labels don’t seem to work.

I’ve posted the code and a screenshot of the resulting panel form below.

```yaml
<?php if(!defined('KIRBY')) exit ?>

title: Blog post
pages: false
files: true

fields:
  titlearabic: 
    label:Arabictitle
    type:textarea
    placeholder:Blog post title
  titleenglish: 
    label:Englishtitle
    type:textarea
    placeholder:Blog post title
  date:
    label:Date
    type:text
    placeholder:dd/mm/yyyy
  textarabic: 
    label: Arabic
    type: Markdown
    tools:
            - bold
            - italic
            - header2
    header2: h6
  textenglish: 
    label: English
    type: Markdown
    tools:
            - bold
            - italic
            - header2
    header2: h6

```

 ![](https://europe1.discourse-cdn.com/flex017/uploads/getkirby/original/2X/e/e53cd76100051820653ebe5ab9db8e52da217ef8.png)

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [January 30, 2016, 9:36pm UTC](https://forum.getkirby.com/t/panel-field-label-cant-get-it-to-work/3168/2 "2016-01-30T21:36:47Z")

</div>

The issue is that the YAML syntax requires a space between the name and value, meaning: Instead of “label:Arabictitle” it needs to be “label: Arabictitle”. The same applies for all other lines.

BTW: Did you know that Kirby supports [multiple languages for the same site](https://getkirby.com/docs/languages)? That way you don’t need to put the fields into the same Panel page, but one per language.

* * *

> [@Strictandfun](#):
>
> Sorry if it isn’t a proper code block, could someone tell me how to post these?

I have changed your syntax. Code blocks use three backticks at the start and end (on separate lines), just like on GitHub. 🙂

---

<div class="post-metadata">

**Author:** ![Strictandfun](https://avatars.discourse-cdn.com/v4/letter/s/c4cdca/32.png) [@Strictandfun](https://forum.getkirby.com/u/Strictandfun)\
**Post date:** [January 30, 2016, 9:47pm UTC](https://forum.getkirby.com/t/panel-field-label-cant-get-it-to-work/3168/3 "2016-01-30T21:47:38Z")

</div>

Hi Lukas!

Firstly, thanks for such a speedy response, and on a weekend 😃

That solved the problem, a simple space, ha ha!

I fiddled about with the language support, but couldn’t get it to work the way I wanted. Probably partly because I didn’t want to have two different pages with a language each, as I am coding the website with the two language side by side on every page, as opposed to different language versions of each page. Dunno if I’m making sense?

And thanks for teaching me how to post the code!

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [January 30, 2016, 10:11pm UTC](https://forum.getkirby.com/t/panel-field-label-cant-get-it-to-work/3168/4 "2016-01-30T22:11:29Z")

</div>

> [@Strictandfun](#):
>
> as I am coding the website with the two language side by side on every page, as opposed to different language versions of each page.

Yes, then what you are doing is completely correct. The multi-language feature only works with one language at any given time.

You are welcome. 😉

---

<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:** [January 31, 2016, 12:02am UTC](https://forum.getkirby.com/t/panel-field-label-cant-get-it-to-work/3168/5 "2016-01-31T00:02:11Z")

</div>

I don’t know if this is in line with pure doctrine, but maybe less messy in the panel, but you could in fact achieve what you want to do in a multi-language installation.

In your templates, instead of calling only the standard methods, e.g.

```php
<?php
echo $page->title();
?>

```

You could do this:

```php
<?php
echo $page->content('en')->title();
echo $page->content('ar')->title();
?>

```

Then your blueprints and your forms would be only half as long … a bit more coding, though.

Any opinions?

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [January 31, 2016, 10:56am UTC](https://forum.getkirby.com/t/panel-field-label-cant-get-it-to-work/3168/6 "2016-01-31T10:56:21Z")

</div>

But that would still result in language-specific URLs, so the same page woule exist in both languages in the frontend.

---

<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:** [January 31, 2016, 11:04am UTC](https://forum.getkirby.com/t/panel-field-label-cant-get-it-to-work/3168/7 "2016-01-31T11:04:11Z")

</div>

Yes, but you could use a route to redirect one to the other.

---

<div class="post-metadata">

**Author:** ![lukasbestle](https://dub1.discourse-cdn.com/flex017/user_avatar/forum.getkirby.com/lukasbestle/32/11437_2.png) [@lukasbestle](https://forum.getkirby.com/u/lukasbestle)\
**Post date:** [January 31, 2016, 11:06am UTC](https://forum.getkirby.com/t/panel-field-label-cant-get-it-to-work/3168/8 "2016-01-31T11:06:07Z")

</div>

But you would still have the language code in the URL. Your solution definitely works, but I think it is a bit hacky. 🙂

---

<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:** [January 31, 2016, 11:10am UTC](https://forum.getkirby.com/t/panel-field-label-cant-get-it-to-work/3168/9 "2016-01-31T11:10:28Z")

</div>

> [@lukasbestle](#):
>
> But you would still have the language code in the URL.

Not for the main language.

> [@lukasbestle](#):
>
> Your solution definitely works, but I think it is a bit hacky. 🙂

That’s what I was asking myself, but in this case, I would still go down this route to make editing content more convenient.

---

<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:58pm UTC](https://forum.getkirby.com/t/panel-field-label-cant-get-it-to-work/3168/10 "2025-02-06T16:58:02Z")

</div>

Archived on February 6, 2025, 4:58pm UTC


