Using site.find throwing "Invalid value for "parent"" in Panel

Hi!

I’m trying to list subpages of a site’s subpage directly on the site-panel.
A list of grandchild-pages if you will.

The subpage is “Lids”, and it gets listed sucessfully on the subpage-list. I can also open it and edit it in its own panel-view.

The problem is that Kirby doesn’t like my parent: site.find(‘lids’) for some reason. Here’s a hopefully clear illustration of the problem:

I tried “Lids”, “lids” {{ site.find() }}, single/double-quotes, it doesn’t make a difference.
When II put the “parent”-line first in the YAML, I get:

Invalid section type ("")
The following section types are available: (...)

Thanks!

Is the folder really called lids?

The content-folder is named “1_lids”.
I just tried site.find('1_lids'), but without success.
This is the structure:

45

The directory “1_lids” also contains a “lids.txt” with only title: Lids

Also in the home-template, page('lids')->children(); works fine.

That seems weird. I just tried to test this and if I use a page name that doesn’t exist, I don’t get an error but the parent option is just ignored.

Could you please paste your blueprint here?

Sure, thanks! From a dev-instinct-POV It feels like the site.find-function is not being evaluated correctly, maybe the syntax is wrong?

title: Site

columns:
  - width: 1/2
    sections:
      pages:
        type: pages
        headline: Pages
        status: all
        create: default
        layout: list
      lids:
        type: pages
      	parent: site.find('lids')
        headline: Lids
        status: all

  - width: 1/2
    sections:
      settings:
        type: fields
        fields:
          title:
            label: Title
            type: text

          author:
            label: Author
            type: text

          description:
            label: Description
            type: textarea

          copyright:
            label: Copyright
            type: textarea

          footer:
            label: Footer-Text
            type: textarea

Also it doesn’t matter which value parent has, it’s always the same error.

What is really weird is that when I copy your code, I get the same error. However, if I manually retype the section, it works fine.

As if there was some weird character or encoding. Maybe you could remove that part, delete the file and create a new one, and then manually add the section back.

\o/ hooray, it was a Tab-Character in the line with the parent. Thanks :100:

Yaml is very sensitive when it comes to indentation, so better use a good editor or even linter. Just realized that I haven’t customized mine yet after upgrading my OS, so I didn’t see the tab :see_no_evil:

I was ignorant about YAML-Syntax, and CodeAnywhere didn’t show any errors. When I pasted it into Sublime and searched for spaces, there were exactly two missing. Thanks again for the quick help.