CpMultiplane Docs

created: modified:

Setup

Intended use

Backend - Cockpit

  1. Create a singleton site for your default page definitions.
  2. Create a collection pages for all of your pages.
  3. Create a collection posts for all of your blog posts.
  4. Use the CpMultiplaneGUI addon.

Frontend - CpMultiplane

  1. create a child theme of rljbase or create your own theme
  2. adjust defaults in /child-theme/config/config.php
  3. add snippets to /child-theme/bootstrap.php, that are explicitly for your theme
  4. add snippets to /config/bootstrap.php, that are specifically for your setup
  5. change some partials to fit your needs

Copy/install these addons into cockpit/addons/.

Settings

The fastest way to change some defaults, is to add some values to /cockpit/config/config.php:

<?php
return [
    'app.name' => 'CpMultiplane',

    'i18n' => 'en',
    'languages' => [
        'default' => 'English',
        'de' => 'Deutsch',
    ],

    // define settings here
    'multiplane' => [
        'pages' => 'pages',
        'siteSingleton' => 'site',
        'slugName' => 'slug',
        'use' => [
            'collections' => [
                'pages',
                'posts',
                'products',
            ],
            'singletons' => [
                'site',
            ],
            'forms' => [
                'contact',
            ],
        ],
    ],
];

The cleaner and more user friendly way is to use the GUI. Create a profile, name it my-profile and set multiplane to the profile name:

return [
    'app.name' => 'CpMultiplane',

    'i18n' => 'en',
    'languages' => [
        'default' => 'English',
        'de' => 'Deutsch',
    ],

    // define settings via profile
    'multiplane' => [
        'profile' => 'my-profile',
    ],
];

Quickstart

cd ~/html
./mp multiplane/quickstart --template basic

Templates: minimal, basic, full

to do...

Collections

to do...

Pages

to do...

Subpages (posts)

to do...

Site Singleton

to do...

Profiles

to do...