Portfolio Tutorial Help

I am stuck. I followed the Portfolio tutorial https://getkirby.com/docs/reference/panel/samples/portfolio and I can’t get any of the panel stuff to show up. So, I came on here trying to find out what I am doing wrong and I found this topic Trying to following the Portfolio Tutorial. I tried to edit my site.yml so the projects would show up but I only have blank columns.

    site/blueprints/site.yml
    # The layout of this form has two columns:
    columns:
    # The first column has one section for the
    #
      - width: 1/2
      sections:
    # The `projects` section reuses the pages section defined in `/site/blueprints/sections/notes.yml`
    pages: sections/projects
    # The `pages` pages section shows other main pages of the site
    # Using the `templates` option, we limit which types of pages are shown
    # Using the `create` option, we limit the type of page that can be created when a new page is created
    # Note that the `sandbox` page and the `error` page that also exist in the content folder but use different blueprints$
    # Since the error page's blueprint is set to `read: false`, it wouldn't show up here even if you added the error bluep$
    pages:
      type: projects
      create: default
      templates:
        - projects
      # subpages of the `photography` page in card layout
      # It reuses the pages section defined in `/site/blueprints/sections/albums.yml`
      - width: 1/2

      # The second column has two sections, `notes` and `pages`
      - width: 1/2
    sections:
      # The `notes` section reuses the pages section defined in `/site/blueprints/sections/notes.yml`
      notes: sections/notes

      # The `pages` pages section shows other main pages of the site
      # Using the `templates` option, we limit which types of pages are shown
      # Using the `create` option, we limit the type of page that can be created when a new page is created
      # Note that the `sandbox` page and the `error` page that also exist in the content folder but use different blueprints thus do not show up in the list
      # Since the error page's blueprint is set to `read: false`, it wouldn't show up here even if you added the error blueprint to the templates list
      pages:
        type: pages
        create: default
        templates:
            - projects
      # subpages of the `photography` page in card layout
      # It reuses the pages section defined in `/site/blueprints/sections/albums.yml`
      - width: 1/2

      # The second column has two sections, `notes` and `pages`
      - width: 1/2
    sections:
      # The `notes` section reuses the pages section defined in `/site/blueprints/sections/notes.yml`
      notes: sections/notes

      # The `pages` pages section shows other main pages of the site
      # Using the `templates` option, we limit which types of pages are shown
      # Using the `create` option, we limit the type of page that can be created when a new page is created
      # Note that the `sandbox` page and the `error` page that also exist in the content folder but use different blueprints thus do not show up in the list
      # Since the error page's blueprint is set to `read: false`, it wouldn't show up here even if you added the error blueprint to the templates list
      pages:
        type: pages
        create: default
        templates:
          - about
          - home
          - default

Thank you for your help.

Yaml blocks need to be indented properly.

Examples in the Kirby documentation use 2-spaces per level of indentation. Also, make sure your code editor isn’t mixing spaces and tabs.

1 Like

In addition to what @pedroborges wrote above , a blueprint needs a title, please look at the examples.

title: Whatever

And this line needs to be removed.

1 Like

You are also using the same key (pages) multiple times, that won’t work either.

1 Like