<?php

  return [
    "type"           => "page",
    "model"          => "Entry",
    "label"          => "pages",
    "label_singular" => "page",
    "template"       => TRUE,
    "hierarchic"     => TRUE,
    "group"          => "general",
    "order"          => TRUE,
    //  "showSlug" => true,
    "showUri"        => TRUE,
    "search"         => [
      "primary"   => ["title"],
      "secondary" => ["content"],
      "display"   => [
        "title"   => "title",
        "content" => "content"
      ]
    ],
    "fields"         => [
      [
        "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
      ],
      [
        "name"          => "content",
        "label"         => "content",
        "type"          => "editor",
        "multiLanguage" => TRUE,
        "preValidation" => "trim|xss_clean",
        "validation"    => ""
      ]
    ],
    "actions"        => [
      "insert", "edit", "delete", "order", "configuration"
    ],
    "templates"      => [
      'homepage'     => [
        'id'          => 'homepage',
        'name'        => 'Home Page',
        'view'        => 'frontend.pages.homepage',
        'contentType' => 'cf_page_home'
      ],
      'get_involved' => [
        'id'   => 'get_involved',
        'name' => 'Get Involved',
        'view' => 'frontend.pages.get_involved'
      ],
      'donate'       => [
        'id'   => 'donate',
        'name' => 'Donate',
        'view' => 'frontend.pages.donate'
      ],
      'story'        => [
        'id'                => 'story',
        'name'              => 'Stories',
        'view'              => 'frontend.pages.stories.stories',
        'parameters'        => 1,
        'detailView'        => 'frontend.pages.stories.story',
        'detailContentType' => 'story'
      ],
      'freecontent'  => [
        'id'   => 'freecontent',
        'name' => 'Free Content',
        'view' => 'frontend.pages.project_info.freecontent',
      ],
      'legal'        => [
        'id'   => 'legal',
        'name' => 'Legal',
        'view' => 'frontend.pages.project_info.styleguide',
      ],
      'contact'      => [
        'id'   => 'contact',
        'name' => 'Contact',
        'view' => 'frontend.pages.project_info.styleguide',
      ],
      'styleguide'   => [
        'id'   => 'styleguide',
        'name' => 'Styleguide',
        'view' => 'frontend.pages.project_info.styleguide',
      ],
    ]
  ];

