TimOetting / kirby-v3-builder

17 stars 2 forks source link

Invalid return type of Kirby\Form\Field::save() #20

Open qroac opened 5 years ago

qroac commented 5 years ago

After using the sandbox snippet in a plain default.yml blueprint (see below), I get this error message in the panel: image

blueprints/default.yml

title: Default
#preset: page

fields:
  mybuilder:
    label: Page Builder
    type: builder
    columns: 1
    fieldsets:
      bodytext:
        label: Text Block (without preview but with tabs)
        tabs:
          content:
            label: Content
            icon: edit
            fields:
              text:
                label: text
                type: textarea
          style:
            label: Style
            icon: cog
            fields:
              fontfamily:
                label: Font
                type: select
                options:
                  helvetica: Helvetica
                  comicsans: Comic Sans
              fontsize:
                label: Font Size
                type: number
      quote:
        label: Quote
        preview:
          snippet: blocks/quote
          css: /assets/css/blocks/quote.css
        fields:
          text:
            label: Quote Text
            type: textarea
          citation:
            label: Citation
            type: text
      events:
        label: Events
        preview:
          snippet: blocks/events
          css: /assets/css/blocks/events.css
        fields:
          eventlist:
            type: builder
            label: Event List
            columns: 2
            fieldsets:
              event:
                label: Event
                fields:
                  title:
                    label: Title
                    type: text
                  text:
                    label: Description
                    type: textarea
                  date:
                    label: Date
                    type: date
TimOetting commented 5 years ago

Hey @theWeird. The repository has been moved to https://github.com/TimOetting/kirby-builder/ . Can you check if your problem still occurs with the latest version? Thanks for your contribution.