<?php

return array(
    "type" => "page",
    "model" => App\Models\GenericBackoffice\Entry::class,
    "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" => "content",
            "label" => "content",
            "type" => "editor",
            "multiLanguage" => true,
            "preValidation" => "trim",
            "validation" => ""
        ),
    ),
    "actions" => array(
        "insert", "edit", "delete", "order", "configuration"
    ),
    "templates" => array(
        'homepage' => array(
            'id'   => 'homepage',
            'name' => 'Home Page',
            'view' => 'frontend.pages.homepage'
        )
    )
);