title: Testimonials
fields:
  -
    handle: query
    field:
      options:
        all: All
        selection: Selection
      default: all
      display: Query
      type: button_group
      validate:
        - sometimes
        - required
      instructions: 'Show all or a selection of testimonials'
      always_save: false
      width: 50
  -
    handle: limit
    field:
      type: integer
      display: Limit
      instructions: 'Limit the number of shown testimonials'
      width: 50
  -
    handle: testimonials
    field:
      collections:
        - testimonials
      type: entries
      display: Testimonials
      instructions: 'Select the testimonials to show'
      if:
        query: 'equals selection'
      validate:
        - required
        - sometimes
