<?php

return array(
    "type"           => "page",
    "model"          => "Entry",
    "label"          => "pages",
    "label_singular" => "page",
    "template"       => true,
    "hierarchic"     => true,
    "group"          => "general",
    "order"          => true,
    //  "showSlug" => true,
    "showUri"        => true,
    "search"         => array(
        "primary"   => array("title"),
        "secondary" => array("content"),
        "display"   => array(
            "title"   => "title",
            "content" => "content",
        ),
    ),
    "fields"         => array(
        array(
            "name"          => "title",
            "label"         => "title",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => true,
            "search"        => true,
            "sort"          => true,
        ),
        array(
            "name"          => "subtitle",
            "label"         => "Título principal da página",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => true,
            "preValidation" => "xss_clean|trim",
            "validation"    => "required|max:150",
            "info"          => "Nota: Para inserir uma quebra de linha utilize um \"&lt;br&gt;\". As palavras que não são a negrito coloque entre as tags &lt;span&gt;&lt;/span&gt;",
        ),
        array(
            "name"          => "content",
            "label"         => "Descrição associada ao título",
            "type"          => "textArea",
            "maxLength"     => 20000,
            "multiLanguage" => true,
            "preValidation" => "xss_clean|trim",
            "validation"    => "required|max:20000",
        ),
        array(
            "name"          => "featured_image",
            "label"         => "Imagem de destaque",
            "type"          => "textBox",
            "maxLength"     => 150,
            "multiLanguage" => false,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation"    => "required|max:150",
            "inList"        => true,
            "search"        => false,
            "sort"          => false,
        ),
        array(
            "name"        => "archives",
            "label"       => "Biblioteca",
            "type"        => "multiplePicker",
            "allowInsert" => true,
            "objectTypes" => array("archive"),
            "order"       => true,
        ),
        array(
            "name"        => "downloads",
            "label"       => "Downloads",
            "type"        => "multiplePicker",
            "allowInsert" => true,
            "objectTypes" => array("archive"),
            "order"       => true,
        ),
        array(
            "name"        => "articles",
            "label"       => "Artigos da página",
            "type"        => "singlePicker",
            "allowInsert" => true,
            "order"       => true,
            "objectType"  => "article",
            "maxSize"     => 10
        ),
        array(
            "name"        => "videos",
            "label"       => "Videos da página",
            "type"        => "singlePicker",
            "allowInsert" => true,
            "order"       => true,
            "objectType"  => "video",
            "maxSize"     => 10
        ),
        array(
            "name"        => "questionAnswerBlocks",
            "label"       => "Questions Answers Blocks",
            "type"        => "multiplePicker",
            "allowInsert" => true,
            "objectTypes" => array("qa_block"),
            "order"       => true,
        ),
        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",
        ),
    ),
    "actions"        => array(
        "insert", "edit", "delete", "order", "configuration",
    ),
    "templates"      => array(
        'homepage'        => array(
            'id'   => 'homepage',
            'name' => 'Home Page',
            'view' => 'frontend.pages.homepage',
            'contentType' => 'home_configuration',
        ),
        'wholost'         => array(
            'id'          => 'wholost',
            'name'        => 'Who Lost',
            'view'        => 'frontend.pages.p1',
            'contentType' => 'q_one_configuration',
        ),
        'unevenPortugal'  => array(
            'id'   => 'unevenPortugal',
            'name' => 'Uneven Portugal',
            'view' => 'frontend.pages.p2',
            'contentType' => 'q_two_configuration',
        ),
        'howMuchPortugal' => array(
            'id'   => 'howMuchPortugal',
            'name' => 'How Much Portugal',
            'view' => 'frontend.pages.p3',
            'contentType' => 'q_three_configuration',
        ),
        'revenuePortugal' => array(
            'id'   => 'revenuePortugal',
            'name' => 'Revenue Portugal',
            'view' => 'frontend.pages.p4',
            'contentType' => 'q_four_configuration',
        ),
        'evolution' => array(
            'id'   => 'evolution',
            'name' => 'Evolution',
            'view' => 'frontend.pages.evolution',
            'contentType' => 'evolution_configuration',
        ),
        'glossario' => array(
            'id'   => 'glossario',
            'name' => 'Glossario',
            'view' => 'frontend.pages.glossario',
        ),
        'sobreNos' => array(
            'id'   => 'sobreNos',
            'name' => 'Sobre Nós',
            'view' => 'frontend.pages.about-us',
        ),
    ),
);
