<?php

return [
    "type"                    => "blogArticle",
    "model"                   => App\Models\GenericBackoffice\BlogArticle::class,
    "label"                   => "Blog Articles",
    "label_singular"          => "Blog Article",
    "template"                => FALSE,
    "hierarchic"              => FALSE,
    "group"                   => "content",
    "order"                   => TRUE,
    "showUri"                 => TRUE,
    "baseUri"                 =>[
        'en' => '/blog',
        'de' => '/bloggen',
    ],
    "meta_title_update_field" => "article_title",
    "search"                  => [],
    "fields"                  => [
        [
            "name"          => "title",
            "label"         => "Backend Title",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => TRUE,
            "search"        => TRUE,
            "sort"          => TRUE
        ],
        [
            "name"          => "article_title",
            "label"         => "Article Title (Visible in Blog Page, Articles list)",
            "type"          => "textBox",
            "maxLength"     => 300,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:300",
            "inList"        => FALSE,
            "search"        => FALSE,
            "sort"          => FALSE
        ],
        [
            "name"          => "blocks",
            "label"         => "Blocks",
            "type"          => "multiplePicker",
            "longList"      => true,
            "allowInsert"   => true,
            "objectTypes"   => ["block"],
            "order"         => true
        ],
        [
            "name"       => "mainImage",
            "label"      => "Image",
            "type"       => "mediaPicker",
            "minSize"    => 1, // means required = true
            "multiple"   => FALSE,
            "mediaType"  => "image",
            "placement"  => "sidebar"
        ],
        [
            "name"          => "meta_title",
            "label"         => "[Meta] Title",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:150",
            "placement"     => "sidebar",
            "inList"        => FALSE,
            "search"        => FALSE,
            "sort"          => FALSE
        ],
        [
            "name"          => "meta_description",
            "label"         => "[Meta] Description",
            "type"          => "textArea",
            "maxLength"     => 300,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:300",
            "placement"     => "sidebar",
            "inList"        => FALSE,
            "search"        => FALSE,
            "sort"          => FALSE
        ],
        [
            "name"          => "meta_keywords",
            "label"         => "[Meta] Keywords",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => TRUE,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "max:150",
            "placement"     => "sidebar",
            "inList"        => FALSE,
            "search"        => FALSE,
            "sort"          => FALSE
        ],
        [
            "name"      => "metaImage",
            "label"     => "[Meta] Image",
            "type"      => "mediaPicker",
            "multiple"  => FALSE,
            "mediaType" => "image",
            "placement" => "sidebar"
        ],
    ],
    "actions"        => [
        "insert", "edit", "delete", "order", "configuration"
    ]
];
