<?php
return array(
    "type" => "press_release",
    "model" => "PressRelease",
    "label" => "press releases",
    "label_singular" => "press release",
    "group" => "none",
    "template" => false,
    "order" => false,
    "search" => array(
        1 => array(
            "primary" => array("title"),
            "secondary" => array("content", "summary"),
            "display" => array(
                "title" => "title",
                "content" => "reference_summary|content",
                "image_id" => "media"
            ),
            'uri' => array(
                'en' => '/media-corner/{slug}',
                'de' => '/logos/{slug}',
                'sv' => '/media-corner/{slug}',
                'fr' => '/media-corner/{slug}',
                'es' => '/media-corner/{slug}',
                'pt' => '/media-corner/{slug}'
            )
        ),
        2 => array(
            "primary" => array("title"),
            "secondary" => array("content", "summary"),
            "display" => array(
                "title" => "title",
                "content" => "content",
                "image_id" => "media"
            ),
            'uri' => '/media-corner/{slug}'
        )
    ),
    "baseUri" => array(
        1 => array(
                'en' => '/media-corner',
                'de' => '/logos',
                'sv' => '/media-corner',
                'fr' => '/media-corner',
                'es' => '/media-corner',
                'pt' => '/media-corner'
            ),
        2 => 'press-room'
    ),
    "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" => "summary",
            "label" => "summary",
            "type" => "editor",
            "multiLanguage" => true,
            "preValidation" => "trim|xss_clean",
            "validation" => ""
        ),
        array(
            "name" => "content",
            "label" => "content",
            "type" => "editor",
            "multiLanguage" => true,
            "preValidation" => "trim",
            "validation" => ""
        ),
        array(
            "name" => "date",
            "label" => "date",
            "type" => "datePicker",
            "inputType" => "date", //time|date|datetime
            "multiLanguage" => false,
            "validation" => "required",
            "placement" => "sidebar"
        ),
        array(
            "name" => "media",
            "label" => "cover media",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "placement" => "sidebar",
            "multiple" => false,
            "minSize" => "0",
            /*
            "thumbnailSizes" => array(
                array("type" => "fit", "name" => "280x150", "width" => 280, "height" => 150),
                array("type" => "resize_noup", "name" => "800w", "width" => 800, "height" => 800)
            ),
            */
            "relatedContentType" => 'press_release'
        ),
        array(
            "name" => "document",
            "label" => "PDF document",
            "type" => "mediaPicker",
            "multiLanguage" => true,
            "mediaType" => "document",
            "placement" => "sidebar",
            "multiple" => false,
            "minSize" => "0",
            "relatedContentType" => 'press_release'
        ),
        array(
            "name" => "meta_title",
            "label" => "SEO - Title Tag",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150"
        ),
        array(
            "name" => "meta_keywords",
            "label" => "SEO - Keywords",
            "type" => "textBox",
            "maxLength" => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:150"
        ),
        array(
            "name" => "meta_description",
            "label" => "SEO - Description",
            "type" => "textArea",
            "maxLength" => 300,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:300"
        ),
        array(
            "name" => "canonical_url",
            "label" => "Canonical URL (original source of the content)",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "url|max:255"
        )
    ),
    "actions" => array(
        "insert", "edit", "duplicate", "delete"
    )
);
