LogoLogo
  • Organisation
    • Intro
    • Kursprogramm
    • Regeln
  • Konzepte & Inhalte
    • CMS
    • Backend
    • Theme
      • Installation
      • Layouts
      • Seiten (Pages)
      • Partials
      • Content (Inhalte)
      • Assets
      • Template Sprache
    • Plugins
      • Bestehende Plugins
      • Script und Style Platzhalter
      • Eigene Plugins
    • Bilder
      • Formate
      • Rechte an Bildern & Inhalten
      • Bilder in OCMS zuschneiden
  • Projekt
    • Projektauftrag
    • Pflichtenheft
    • Projektbriefings
      • Wonderland
      • Kursito
      • Peter & Karin
      • Nexus
      • Techowl
    • Recherche
    • Kundenbriefing
    • Team-Plugin
      • Backend
        • Validierung
        • Porträt
        • Suche
      • Frontend
        • Porträt
    • Static Pages
    • Fehlerseiten 404, 500
    • SEO
      • Meta-Tags
      • Hilfstools
    • Testing
  • Infos
    • Tooling
Powered by GitBook
On this page
  1. Projekt
  2. Team-Plugin
  3. Backend

Validierung

Nun wollen wir die Nutzereingaben validieren, um sicherzustellen, dass die nötigen Informationen vorhanden sind, und dies auch im richtigen Format.

Hier eine mögliche Validierung:

handle: Person
type: structure
name: Person
drafts: false

structure:
    maxDepth: 1

primaryNavigation:
    label: Team
    icon: icon-user
    order: 140

navigation:
    icon: icon-user
    parent: Team
    order: 10

fields:
    function:
        label: Funktionsbezeichnung
        type: text
        validation: required
    email:
        label: Email
        type: text
        validation: required|email
    phone:
        label: Telefon
        type: text
    description:
        label: Beschreibung
        type: textarea

Last updated 1 year ago