<?php
return array(
    "type" => "blog_author",
    "model" => "App\Models\BlogAuthor",
    "label" => "Blog Authors",
    "label_singular" => "Blog Author",
    "group" => "blog",
    "template" => false,
    "order" => false,
    "baseUri" => array(
        1 => array(
            "en" => "/blog-contributors",
            "de" => "/blog-contributors",
            "sv" => "/blog-contributors",
            "fr" => "/blog-contributors",
            "es" => "/blog-contributors",
            "pt" => "/blog-contributors"
        )
    ),
    "search" => array(
        1 => array(
            "primary" => array(),
            "secondary" => array("title"),
        )
    ),
    "fields" => array(
        array(
            "name" => "title",
            "label" => "title",
            "type" => "textBox",
            "maxLength" => 100,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:100",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "email",
            "label" => "e-mail",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "required|max:150",
            "inList" => false,
            "search" => false,
            "sort" => false
        ),
        array(
            "name" => "position_company",
            "label" => "Position / Company",
            "type" => "textBox",
            "maxLength" => 60,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:60",
            "inList" => true,
            "search" => true,
            "sort" => true
        ),
        array(
            "name" => "first_name",
            "label" => "First Name",
            "type" => "textBox",
            "maxLength" => 30,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:30"
        ),
        array(
            "name" => "last_name",
            "label" => "Last Name",
            "type" => "textBox",
            "maxLength" => 30,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:30"
        ),
        array(
            "name" => "content",
            "label" => "content",
            "type" => "editor",
            "multiLanguage" => true,
            "preValidation" => "trim",
            "validation" => ""
        ),
        array(
            "name" => "media",
            "label" => "cover media",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "placement" => "sidebar",
            "multiple" => false,
            "minSize" => "0",
            "relatedContentType" => 'blog_author'
        )
    ),
    "actions" => array(
        "insert", "edit", "duplicate", "delete"
    )
);
