Blueprints for Page Sections according to Onepager-Tutorial in Kirby 3

Hey there. I have the same Problem that was dicussed here:

Blueprints for Page Sections according to Onepager-Tutorial

Unfortunatly the Solutions with the Modules Plugin and stetting pages: ture are not working.

I build a onepager according to the Tutorial. now i want to add blueprints to the Sections. As log as I do not add another blueprint to the folder blueprints/pages it looks like that:

59
from the blueprint – site in the Panel

Looks lust like it supposed to be. But the Blueprints are not in the folder blueprints/pages.

I thought maybe i can just add a Bluprint, named like the Snippet of the Section.
But than appears this error message:

18%20Kopie
from the blueprint – site in the Panel

It would be nice to have diverent Sites/blueprints in the panel for each Section.
Maybe anyone has another solution for that Problem.

The modules plugin is not compatible with Kirby 3.

Yeah i know. Unfortunatly it is no Solution. :-/

Ok, then I somehow missed what your problem was. Could you please post your blueprint, the one that throws the error.

The Problem is, that i can not put creat a Blueprint without the panel throwing an error.

title: Experience
icon: 💪
columns:
- width: 1/1
    sections:
      fields:
        secTitle:
          label: Section title
          type:  text
- width: 1/3
  sections:
    fields:
      title_sterling:
        label: Period
        type:  text

- width: 1/3
  sections:
    fields:
      location_sterling:
        label: Location/s
        type:  text
- width: 1/3
  sections:
    fields:
      time_sterling:
        label: Period
        type:  text
- width: 1/1
  sections:
    fields:
      text_sterling:
        label: Description
        type:  text

Looks like your identation is wrong. All - width: xxx should be indented. Why do you create a new column and section for each single field? You might as well set the field width .

1 Like

oh, so it is just a syntax mistake? :tired_face:

I played around with the default layout, and saw, that fields switch in the next row, wenn they don’t fit. like in css grid… I was not aware that i created new columns for every field.

I’d set it up like this (if you don’t need a file upload and just the fields:

title: Experience
icon: 💪
fields:

  secTitle:
    label: Section title
    type:  text
    width: 1/1

  title_sterling:
    label: Period
    type:  text
    width: 1/3

  location_sterling:
    label: Location/s
    type:  text
    width: 1/3

  time_sterling:
    label: Period
    type:  text
    width: 1/3

  text_sterling:
    label: Description
    type:  text
    width: 1/1

Even if you use columns, you don’t have to set up a separate section for each field, but you can use fields within a column without defining a section. Apart from that, your section are not correctly defined, anyway.

1 Like