CpMultiplane Demo

Definition files

Site singleton

<?php
 return array (
  'name' => 'site',
  'label' => 'Site',
  '_id' => 'site5d0ccc4622ef1',
  'fields' => 
  array (
    0 => 
    array (
      'name' => 'site_name',
      'label' => 'Site name',
      'type' => 'text',
      'default' => '',
      'info' => '',
      'group' => '',
      'localize' => true,
      'options' => 
      array (
      ),
      'width' => '1-2',
      'lst' => true,
      'acl' => 
      array (
      ),
      'required' => true,
    ),
    1 => 
    array (
      'name' => 'description',
      'label' => 'Short description',
      'type' => 'textarea',
      'default' => '',
      'info' => 'for SEO',
      'group' => '',
      'localize' => true,
      'options' => 
      array (
        'rows' => 3,
      ),
      'width' => '1-2',
      'lst' => true,
      'acl' => 
      array (
      ),
    ),
    2 => 
    array (
      'name' => 'logo',
      'label' => '',
      'type' => 'asset',
      'default' => '',
      'info' => '',
      'group' => '',
      'localize' => false,
      'options' => 
      array (
      ),
      'width' => '1-2',
      'lst' => true,
      'acl' => 
      array (
      ),
    ),
    3 => 
    array (
      'name' => 'background_image',
      'label' => '',
      'type' => 'asset',
      'default' => '',
      'info' => '',
      'group' => '',
      'localize' => false,
      'options' => 
      array (
      ),
      'width' => '1-2',
      'lst' => true,
      'acl' => 
      array (
      ),
    ),
  ),
  'template' => '',
  'data' => NULL,
  '_created' => 1561119814,
  '_modified' => 1561119814,
  'description' => '',
  'acl' => 
  array (
  ),
  'icon' => 'settings.svg',
  'in_menu' => true,
);

Pages collection

<?php
 return array (
  'name' => 'pages',
  'label' => 'Pages',
  '_id' => 'pages5d0ccd98a1f46',
  'fields' => 
  array (
    0 => 
    array (
      'name' => 'title',
      'label' => 'Title',
      'type' => 'text',
      'default' => '',
      'info' => '',
      'group' => '',
      'localize' => true,
      'options' => 
      array (
      ),
      'width' => '1-1',
      'lst' => true,
      'acl' => 
      array (
      ),
      'required' => true,
    ),
    1 => 
    array (
      'name' => 'content',
      'label' => 'Content',
      'type' => 'markdown',
      'default' => '',
      'info' => '',
      'group' => '',
      'localize' => true,
      'options' => 
      array (
      ),
      'width' => '1-1',
      'lst' => true,
      'acl' => 
      array (
      ),
    ),
    2 => 
    array (
      'name' => 'published',
      'label' => '',
      'type' => 'boolean',
      'default' => '',
      'info' => '',
      'group' => 'config',
      'localize' => false,
      'options' => 
      array (
      ),
      'width' => '1-3',
      'lst' => true,
      'acl' => 
      array (
      ),
    ),
    3 => 
    array (
      'name' => 'description',
      'label' => 'Short description',
      'type' => 'textarea',
      'default' => '',
      'info' => 'for SEO',
      'group' => 'config',
      'localize' => true,
      'options' => 
      array (
        'rows' => 3,
      ),
      'width' => '1-3',
      'lst' => true,
      'acl' => 
      array (
      ),
    ),
    4 => 
    array (
      'name' => 'slug',
      'label' => '',
      'type' => 'text',
      'default' => '',
      'info' => '',
      'group' => 'config',
      'localize' => true,
      'options' => 
      array (
      ),
      'width' => '1-3',
      'lst' => true,
      'acl' => 
      array (
      ),
    ),
  ),
  'sortable' => false,
  'in_menu' => true,
  '_created' => 1561120152,
  '_modified' => 1561124171,
  'color' => '#A0D468',
  'acl' => 
  array (
  ),
  'rules' => 
  array (
    'create' => 
    array (
      'enabled' => false,
    ),
    'read' => 
    array (
      'enabled' => false,
    ),
    'update' => 
    array (
      'enabled' => false,
    ),
    'delete' => 
    array (
      'enabled' => false,
    ),
  ),
  'icon' => 'adressbook.svg',
);

Posts collection

<?php
 return array (
  'name' => 'posts',
  'label' => 'Posts',
  '_id' => 'posts5d0d182bdda24',
  'fields' => 
  array (
    0 => 
    array (
      'name' => 'title',
      'label' => 'Title',
      'type' => 'text',
      'default' => '',
      'info' => '',
      'localize' => true,
      'options' => 
      array (
      ),
      'width' => '1-1',
      'lst' => true,
      'required' => true,
    ),
    1 => 
    array (
      'name' => 'content',
      'label' => 'Content',
      'type' => 'wysiwyg',
      'default' => '',
      'info' => '',
      'localize' => true,
      'options' => 
      array (
        'editor' => 
        array (
          'format' => 'Content',
        ),
      ),
      'width' => '1-1',
      'lst' => true,
    ),
    2 => 
    array (
      'name' => 'excerpt',
      'label' => 'Excerpt',
      'type' => 'wysiwyg',
      'default' => '',
      'info' => '',
      'localize' => true,
      'options' => 
      array (
        'editor' => 
        array (
          'format' => 'Basic',
        ),
      ),
      'width' => '1-2',
      'lst' => true,
    ),
    3 => 
    array (
      'name' => 'image',
      'label' => 'Featured Image',
      'type' => 'asset',
      'default' => '',
      'info' => '',
      'localize' => false,
      'options' => 
      array (
      ),
      'width' => '1-2',
      'lst' => true,
    ),
    4 => 
    array (
      'name' => 'tags',
      'label' => 'Tags',
      'type' => 'tags',
      'default' => '',
      'info' => '',
      'localize' => true,
      'options' => 
      array (
      ),
      'width' => '1-2',
      'lst' => true,
    ),
    5 => 
    array (
      'name' => 'background_image',
      'label' => 'Background image',
      'type' => 'asset',
      'default' => '',
      'info' => '',
      'group' => '',
      'localize' => false,
      'options' => 
      array (
      ),
      'width' => '1-2',
      'lst' => true,
      'acl' => 
      array (
      ),
    ),
    6 => 
    array (
      'name' => 'description',
      'label' => 'Short description',
      'type' => 'textarea',
      'default' => '',
      'info' => 'for SEO',
      'group' => 'config',
      'localize' => true,
      'options' => 
      array (
        'rows' => 3,
      ),
      'width' => '1-3',
      'lst' => true,
      'acl' => 
      array (
      ),
    ),
    7 => 
    array (
      'name' => 'slug',
      'label' => '',
      'type' => 'text',
      'default' => '',
      'info' => '',
      'group' => 'config',
      'localize' => true,
      'options' => 
      array (
      ),
      'width' => '1-3',
      'lst' => true,
      'acl' => 
      array (
      ),
    ),
    8 => 
    array (
      'name' => 'published',
      'label' => 'Published',
      'type' => 'boolean',
      'default' => '',
      'info' => '',
      'localize' => false,
      'options' => 
      array (
      ),
      'width' => '1-3',
      'lst' => true,
      'group' => 'config',
    ),
  ),
  'sortable' => false,
  'in_menu' => true,
  '_created' => 1561139243,
  '_modified' => 1561392776,
  'color' => '',
  'acl' => 
  array (
  ),
  'rules' => 
  array (
    'create' => 
    array (
      'enabled' => false,
    ),
    'read' => 
    array (
      'enabled' => false,
    ),
    'update' => 
    array (
      'enabled' => false,
    ),
    'delete' => 
    array (
      'enabled' => false,
    ),
  ),
  'icon' => 'form-editor.svg',
);

Editor formats

Content

<?php
 return array (
  'resize' => true,
  'relative_urls' => false,
  'branding' => false,
  'menubar' => 
  array (
    'edit' => true,
    'insert' => true,
    'view' => true,
    'format' => true,
    'table' => false,
    'tools' => false,
  ),
  'toolbar' => 'undo redo | formatselect | bold italic strikethrough underline | link unlink | alignleft aligncenter alignright | numlist bullist | removeformat | code fullscreen | mpgetimage cpvideolink',
  'plugins' => 
  array (
    'link' => true,
    'anchor' => false,
    'image' => false,
    'lists' => true,
    'preview' => true,
    'hr' => true,
    'code' => true,
    'fullscreen' => true,
    'media' => false,
    'cpmediapath' => false,
    'cpassetpath' => false,
    'table' => false,
    'contextmenu' => true,
    'paste' => true,
    'wordcount' => false,
    'visualblocks' => false,
    'visualchars' => false,
    'tabfocus' => false,
    'noneditable' => false,
    'insertdatetime' => false,
    'codesample' => false,
    'advlist' => false,
    'textcolor' => false,
    'pagebreak' => false,
    'imagetools' => false,
    'emoticons' => false,
    'colorpicker' => false,
    'charmap' => false,
    'autoresize' => false,
    'directionality' => false,
    'cpcollectionlink' => false,
    'toc' => false,
    'searchreplace' => false,
    'mpgetimage' => true,
    'cpvideolink' => true,
  ),
  'height' => '250',
  '_id' => 'Content5d10f66f042af',
  'name' => 'Content',
  '_created' => 1561392751,
  '_modified' => 1561392751,
);

Excerpt

to do...

Version 0.1.3 - The current branch "master" is a few commits ahead from 0.1.3.