Why Plone is so Great?
Why would a personal website like this be hosted with an enterprise grade content management platform?
While Wordpress being the dominant blogging and content management system isn't going to go away any time soon, let me try to sell you a bit on Plone. Firstly, for those non-technical people, both Wordpress and Plone and not compatible in terms of software, add-ons, and such. If you have been living in the Wordpress eco-system, moving to Plone won't be the easiest transition, especially if you have a lot of custom components written. However, if you are starting a brand-new project or website from the ground-up, you should highly consider using Plone over Wordpress for several reasons. At the moment, Plone might be lacking in the sheer amount of publicly available add-ons which might just be a click away using Wordpress, however a huge part of this is because of the current developer base using Wordpress over Plone. Think of how much software is say written for Microsoft's Windows operating system over Apple's macOS operating system. While developers do exist on the other platform, there are still a lot more programs available solely for Microsoft Windows.
However, let's go through some of the interesting features I think make Plone really stand out as a platform.
Near Effortless Backups
With a traditional website made using a mixture of server-side code and a relational database, backing up and restoring such a website after an attack or defacing can be difficult and time consuming. Plone uses the Zope web framework which is written in the Python programming language. As a result of using Zope, which doesn't use a typical relational database like MariaDB or PostgreSQL, backing up the entire website is just as simple as copying a single file for the most part from the server onto some remote secure storage solution. Zope and Plone use what is called an Object Database, so the actual design of this website you see here, is actually a virtual file system contained in a single unified file on the web server. The most interesting part, is that this highly advanced Object Database supports many features that typical relational databases don't, such as full version control built right in, and the database is a rolling transactional one, meaning all data is always appended to the file, and no data is ever overwritten. This creates a very clear history of all changes. There is the ability to pack this database if it does become very large, but for personal websites such as this, that isn't too much of a concern when data is added once every couple of days. Perhaps I'll do the packing of this database once a year and I'll be fine. The biggest advantage of this append-only nature, is that this object database can be backed up on the spot while the website is actively running, so it does not need to be temporarily taken offline to account for new data being added to perform a clean backup. If during the backup process, some data from the next transaction was being written, if the backup is ever restored and brought online, the transactional nature of the object database will always ensure that the data integrity is always in tact.
Quick and Painless Deployments
Due to both Plone and Zope being Python-based, it is very easy to deploy a new website, and say in the event of a cyber-attack where a previously created backup needs to be propped up as soon as possible this becomes incredibly trivial. For example, my restore process in this event, is as follows:
- Setup fresh Linux server
- Run automation scripts to install Python virtual environment using requirements.txt
- Run automation scripts to configure nginx.
- Restore previously backed up Zope Object Database
- Start both Plone and nginx
- I'm Live!
The only actual configuration on the server that I really need to worry about is that of nginx, as my backup contains all the Zope related configuration files, along with my backed up Zope Object Database. There is no relational database to deploy and configure, and I don't need to configure any new complex database passwords, as there are no complex database password to store anywhere, I just restore my website as it was, and run! This greatly simplifies a website restoration after a potential cyber-attack to a known good state.
Plone Add-ons aren't Difficult
Adding new functionality to a Plone website is actually fairly trivial, and the add-on itself can be placed into the aforementioned requirements.txt to ensure that during a new deployment or restoration that the add-ons are also properly restored as well.
This website is currently using the non-react native version of the platform. However, the Plone developers have been hard at work to really modernize Plone, and have created two different front-ends to Plone which are based on React, and are very modern to both the reader and the editor of the website itself. From the documentation, building new components for this new React front-end shouldn't be too difficult for seasoned React developers either, so I highly recommend checking it out if you have a moment.
- Volto Front-end Demo website
- Aurora Front-end Demo website
- Example Documentation for Volto development
The last one there is an example of how to build a new content block for the Volto front-end, which is React-based. I personally opted to use the Blicca, previously called the Classic UI for my website here due to the more dynamic nature of the content I wanted to present, such as embedding stuff which I don't think would be as trivial in a fully HTML5-based website. For websites which are more strictly content focused, and don't need to embed things like Asciinema, then going for a more modern feel with these React-based front-ends might be a better choice.
Basic Content-Types are Easy to Implement
If you don't want to develop a full-on Add-on, then it is also possible to create a new custom content type, as I have with my website here without writing any code on the server itself. While highly frowned upon by seasoned Plone veterans, I personally like that this is possible. All the custom content types you see on my website here are entirely built in this manner, none of them use Python code, or a custom Plone Add-on. These content-types don't require any custom logic to perform their function, and so I thought that creating a full Add-on for something so simple would be a bit overkill. Another interesting advantage of this, is that during my entire website backup that I mentioned above, all of these custom content types are entirely contained with the object database backup snapshot that I create, making the restore process that much more simpler to perform. This also means that someone who might not be fluent in Python can still add custom content types to their website fairly easily, if they know where to look. I wrote a few articles on my website here about how this is done.
