Pages in the content folder but not displaying in backend

Hi there,
I have a folder with a series of subfolders (for a certain number of subpages) each of them contains some content (and other subfolders too). I had to move the main folder in another location of the Kirby content folder (at the top level).

The subfolders are not displaying in the backend and if I create a subpage with the same name I get this error: A page with the URL appendix “intro” already exists

Of course it exists but it is not displayed for some reason.

Is there a way to “refresh” the Kirby content structure?

Thanks!

If you move the folder and do not change the parent of the section, then they will not show up. Your description is not quite clear, though, without further details (content folder structure, blueprints where the pages are supposed to show up etc.)

Hi @texnixe, thank you, I will try to explain more in detail.

This is my folder structure:

Home
About
Products [template: parent-products]
— Products subpage [template: products]
— — Section 1 (section-intro)
— — Section 2 (section-gallery)
— — Section 3 (section-info)
— — Section 4 (section-related)
— — Product A
— — Product B
— — Product C
Contacts

This is the blueprint for the “products” template:

title: Products
template: products

tabs:
  content:
    label: Content
    columns:
      left:
        width: 2/3
        sections:          
          sections:
            headline: Sections
            type: pages
            info: "{{ page.blueprint.title }}"
            templates:
              - section-intro
              - section-gallery
              - section-info
              - section-related
          products:
            label: Products
            type: pages
            templates:
              - product
      right:
         width: 1/3
         sections:
           files:
             type: files

I moved the “Products subpage” on the top level directly in the Kirby content folder so I got a structure like this:

Home
About
Products subpage [template: products]
— Section 1 (section-intro)
— Section 2 (section-gallery)
— Section 3 (section-info)
— Section 4 (section-related)
— Product A
— Product B
— Product C
Contacts

After this it was not working and I reverted it to the previous structure but the sections are no displayed anymore in the backend (while I see their content in the content folder). The products are displaying correctly.

What I would like to do now is:

  1. Make the sections displaying again
  2. Move the “Products subpage” folder on top level

I hope I have been more clear now.

Thanks!

Hm, ok, so you have two pages sections here, and after moving the page one level up, the products section in that template above still shows the products, but the sections section does not show the section-xxx subpages?

Hi, nevermind, I had to update the .txt file in addition to the folder itself.
Now it is working. Thanks!

1 Like