Show all files for a page in panel

Hello everyone,

I’m just into first steps with Kirby 3, there is a thing I cann’t understand - how to see and edit all the files in the page?

While using Kirby 2 I always could see the files on the left pane with option to edit or add files.

This is how the page looks like

and blueprint file:

title: Kunden
icon: 📗

status:
  draft: true
  listed: true

options:
  url: false

columns:
   - width: 1/2
    fields:
      text:
        label: Text
        type: textarea
        size: small
  - width: 1/2
      fields:
        mediacustomer:
          label: Kundenlogos
          type: files

You just need to add a files section to the blueprint.

I’ve done it and nothing happened :confused:

  - width: 1/2
  fields:
    mediacustomer:
      label: Kundenlogos
      type: files
      template: image
  sections:
    allfiles:
      headline: Dateien
      type: files

Define “nothing happened”. Is the section showing on the page but its empty and you know the page has files? This could be down to using a file meta template that hasnt been set on the files section.

Nothing happened: i see nothing in the panel :slight_smile: It looks same like the screenshot in first post.

That’s how the blueprint file looks like:

...
 - width: 1/2
  fields:
    mediacustomer:
      label: Kundenlogos
      type: files
      template: image
  sections:
    allfiles:
      headline: Dateien
      type: files
      template: image

the template image is the standard one delivered with kirby starter kit.

I think its down to your indention. Yaml is sensitive to white space, and being just one charachter out can make stuff not show up. You shouldnt have a - in there either, on the column widths. Here is a columns example…

title: Blog
icon: 📚

columns:
  left:
    width: 1/2
    sections:
      drafts:
        extends: sections/articles
        headline: Drafts
        status: draft

      unlisted:
        extends: sections/articles
        headline: In Review
        status: unlisted

  right:
    width: 1/2
    sections:
      listed:
        extends: sections/articles
        headline: Published
        status: listed

The problem is that you are trying to have a section below a field. That doesn’t work.To have fields and sections in a single columns, you need both a fields and a pages section.

- width: 1/2
    sections: # here come the sections
      fields: # a fields section
        type: fields
        fields:
          mediacustomer:
            label: Kundenlogos
            type: files
            template: image

      allfiles: # a files section
        headline: Dateien
        type: files
        template: image
1 Like

That worked - Kirby 3 is something :upside_down_face: