title: News Article
icon: document
#num: '{{ page.date }}'
options:
   changeTemplate: news

columns:
  left:
    width: 1/2
    sections:
      content:
         type: fields
         fields:
           date:
             type: date
             display: DD-MMM-YYYY
             default: today
             required: true
           text:
             type: textarea
             size: large
             required: true

  right:
    width: 1/2
    sections:
      image:
        headline: News Article Image
        type: files
        template: newsimage
        required: true
        layout: cards
        ratio: 1/1
        max: 1
        accept:
          extension: jpg, png, gif
      pictures:
        headline: Other Images
        type: files
        template: image
      meta:
        type: fields
        fields:
          author:
            type: users
            multiple: false
            default: '{{ kirby.user }}'
            query: kirby.users.filterBy("role", "admin")
          tags:
            type: tags
