Mojo90
1
Can you please tell me why my panel is missing some fields?
<?php if(!defined('KIRBY')) exit ?>
title: Standorte-Termine
pages: false
files: false
fields:
title:
label: Title
type: text
text:
label: Text
type: textarea
section_01:
label: Standorte
type: headline
location:
label: Standort
type: structure
entry: >
{{asd}}
fields:
asd:
label: text
type: text
section_02:
label: Termine
type: headline
calendar:
label: Termineintrag
type: structure
entry: >
<strong>{{summary}}</strong><br>
{{description}}<br>
Start: {{_begin_date}} {{_begin_time}}<br>
Ende: {{_end_date}} {{_end_time}}
fields:
summary:
label: Summary
type: text
description:
label: Description
type: textarea
size: small
_begin_date:
label: Beginning date
type: date
format: DD.MM.YYYY
_begin_time:
label: Beginning time
type: time
interval: 15
_end_date:
label: Ending date
type: date
format: DD.MM.YYYY
_end_time:
label: Ending time
type: time
interval: 15
So this does not Match. Nevertheless what kind of field I add it is not shown in panel. Pls Support!
That’s probably because your are using dashes in your fieldname. Try with underscores instead.
Svnt
3
Try to move everything in [quote=“Mojo90, post:1, topic:7326”] calendar: [/quote] one Tab/space indentation back.
Mojo90
4
Thx for the Hints.
[quote=“texnixe, post:2, topic:7326”]
Try with underscores instead.
[/quote] Did not help.
Indentation is correctly (everywhere, where it should be 2 spaces). That was due to the editor here, sorry 
Everything adjusted in the original post, but still not working.
Svnt
5
I don’t think so. The ‘calendar’ block is one indentation too far right.
I’ve edited it to this:
<?php if(!defined('KIRBY')) exit ?>
title: Standorte-Termine
pages: false
files: false
fields:
title:
label: Title
type: text
text:
label: Text
type: textarea
section_01:
label: Standorte
type: headline
location:
label: Standort
type: structure
entry: >
{{asd}}
fields:
asd:
label: text
type: text
section_02:
label: Termine
type: headline
calendar:
label: Termineintrag
type: structure
entry: >
<strong>{{summary}}</strong><br>
{{description}}<br>
Start: {{_begin_date}} {{_begin_time}}<br>
Ende: {{_end_date}} {{_end_time}}
fields:
summary:
label: Summary
type: text
description:
label: Description
type: textarea
size: small
_begin_date:
label: Beginning date
type: date
format: DD.MM.YYYY
_begin_time:
label: Beginning time
type: time
interval: 15
_end_date:
label: Ending date
type: date
format: DD.MM.YYYY
_end_time:
label: Ending time
type: time
interval: 15
and there is the panel page:
Mojo90
6
@Svnt thx!
But its really weird if I put both files in here: https://www.diffchecker.com it says that there is no difference…
Okay but it works now.
Svnt
7
Yaml indentations are really picky. Always double check, and reformat if something want work.
Good luck!