jongacnik / kirby-fields-block

Kirby block preview plugin to directly render block fields
MIT License
109 stars 5 forks source link

The example #3

Closed rlb222 closed 2 years ago

rlb222 commented 3 years ago

After a big struggle I got it to work. Due to my noob-ness it took a while and a lot of trying out with the blueprint. Maybe you could make it easier on total beginners and add a complete example like this?

Thanks for the plugin! René

mypageBlueprint.yml

title: my Page

fields:
  Alinea:    #name of the block
    type: blocks
    fieldsets:
      alinea:
        name: myAlinea
        preview: fields  #this is the important command
        wysiwyg: true
        label: false  
        fields:  #fields that are repeated in this block
          head:
            type: text
          text:
            type: textarea
jongacnik commented 2 years ago

Glad you were able to sort it out!