getkirby / kirby

Kirby's core application folder
https://getkirby.com
Other
1.31k stars 168 forks source link

[Panel] Site files with template don’t fetch filled in data upon reload/navigation #1623

Closed robinscholz closed 5 years ago

robinscholz commented 5 years ago

Describe the bug When adding site files with a template/blueprint and filling out fields, the data is written to the txt files (which is how it’s supposed to be), but never fetched once the page is reloaded or navigated away from and back to.

To Reproduce Steps to reproduce the behavior:

  1. Download starterkit
  2. Add an images section to the site.yml file:
images:
        headline: Slideshow
        query: site.files
        layout: cards
        size: small
        type: files
        template: slide
  1. Add files/slide,yml
title: Slide
type: files
accept:
    mime: image/*
    orientation: portrait
    maxheight: 3000
    minheight: 2000
fields:
  view:
    type: toggle
    label: Type
    text: Installation View?
    options:
      - Ja
      - Nein
  location:
    type: text
    label: Location
    when:
      view: true
  title:
    type: text
    label: Titel
    width: 1/2
    required: true
  year:
    type: number
    label: Jahr
    width: 1/2
  height:
    type: number
    label: Höhe
    step: .1
    after: ×
    width: 1/2
    when:
      view: false
  width:
    type: number
    label: Breite
    step: .1
    after: cm
    width: 1/2
    when:
      view: false
  technique:
    label: Technik
    type: text
    when:
      view: false
  1. Add a title and save

  2. Reload page

Expected behavior Data should be visible once added.

Screenshots

Screenshot 2019-03-28 at 13 08 09 Screenshot 2019-03-28 at 13 08 30

Kirby Version 3.1.1.

Desktop (please complete the following information):

Additional context Add any other context about the problem here.

robinscholz commented 5 years ago

Weirdly this only happens when a field is called title.

bastianallgeier commented 5 years ago