<?php
return array(
    "type" => "value",
    "model" => "App\Models\Value",
    "label" => "values",
    "label_singular" => "value",
    "group" => "solutions",
    "template" => false,
    "order" => true,
    "websites" => array(1),
    "search" => array(
        1 => array(
            "primary" => array("title", "tagline"),
            "secondary" => array("content"),
            "display" => array(
                "title" => "title",
                "content" => "content"
            ),
            "uri" => '/why-spg/value-chain'
        )
    ),
    "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,
            "websiteSearch" => "primary"
        ),
        array(
            "name" => "tagline",
            "label" => "tagline",
            "type" => "textBox",
            "maxLength" => 255,
            "multiLanguage" => true,
            "preValidation" => "strip_tags|xss_clean|trim",
            "validation" => "max:255",
            "inList" => false,
            "search" => false,
            "sort" => false,
            "websiteSearch" => "primary"
        ),
        array(
            "name" => "content",
            "label" => "content",
            "type" => "editor",
            "multiLanguage" => true,
            "preValidation" => "trim|xss_clean",
            "validation" => "",
            "websiteSearch" => "secondary"
        ),
        array(
            "name" => "image",
            "label" => "image",
            "type" => "mediaPicker",
            "multiLanguage" => false,
            "mediaType" => "image",
            "placement" => "sidebar",
            "multiple" => false,
            "minSize" => 0,
            /*
            "thumbnailSizes" => array(
                array("type" => "fit", "name" => "200x200", "width" => 200, "height" => 200),
            )
            */
        ),
        array(
            "name" => "solutions_description",
            "label" => "Sustainability Solutions Text",
            "type" => "textArea",
            "maxLength" => 255,
            "multiLanguage" => true
        )
    ),
    "actions" => array(
        "insert", "edit", "delete", "order"
    )
);
