Monoplane/CpMultiplane - simple PHP frontend, that uses cockpit as a library

It took some time since my last attempt to write this project and it had a really ugly code base. This time I’m quite happy with it.

The idea of a headless CMS is, to keep it headless and Cockpit is also fully functional, when using it as a library. Monoplane provides a basic structure to display collection entries as pages and it is easy to extend with custom controllers. I tried to keep the semantics and naming patterns from cockpit and I just finished a test installation on my localhost and on one remote server and it seems to work :blush:

Most functionality is written down in the readme. Suggestions are welcome.

Source:

Demo:
Not setup yet with custom pages - it just displays the README file for now - but I wanted to share it.

1 Like

Well,… I decided again, that the code base was ugly and I rewrote the whole thing.

The code base wasn’t intuitive, it was designed for very simple portfolio websites with a few pages and it didn’t really support multilingual setups.

If you used or use Monoplane and find bugs, I might fix them, but I will concentrate on CpMultiplane in the future. The code base is cleaner, it supports multilingual pages by default and it has much more features…

Most options from Monoplane will also work in CpMultiplane, but a lot of the config variables changed.

Some new features in CpMultiplane:

  • simple blog functionality
  • multilingual (optional) with language prefix, e. g.: example.com/en/my-page
  • 2 modes for structured content
    1. one collection per content type, e. g. a collection named pages and a collection named posts
    2. a single collection named pages - each entry has a type page or post
  • simple content preview while editing pages
  • a basic responsive theme with scss files
  • contact forms - fully functional without javascript

I have to update the docs some more and a demo is coming soon…

1 Like

It is not really clear how to set up CpMultiplane.

I got only:

Page not found

Something went wrong. This site doesn’t exist.

I’m working on a quickstart script with predefined settings right now. Stay tuned.

I worked hard the last days and did a lot of fixes and improvements. Check out the latest version 0.2.1. It feels stable now.

To get started with predefined settings and addons just use a few quickstart cli commands.

cd ~/html

git clone https://github.com/raffaelj/CpMultiplane.git .
git clone https://github.com/agentejo/cockpit.git cockpit

./mp multiplane/quickstart --template full --user username --password password
./mp multiplane/load-i18n
./mp multiplane/create-dummy-data --site_name mpfull

I just tested it on a test host (Uberspace) and this is the result of the commands above.
(If you read this in the future, the content on this domain might have changed.)

Changelog:

Updated docs (still work in progress…):

New i18n repo (currently only German and French and some strings are missing):