Book Review: MODx Revolution - Building the Web Your Way
First time accepted submitter matria writes "MODx is a free, open-source Content Management System and Framework, developed and supported by MODX LLC and a global community. The latest iteration of MODx, called Revolution, is entirely object-oriented. To take advantage of the power of MODx, the developer needs to learn how MODx works and how to use its building blocks to extend it to satisfy his purpose. While there is official documentation and a number of websites with tips and tutorials, as well as an active and friendly forum, for the dedicated developer one of the publications that it is good to be aware of is W. Shawn Wilkerson's MODX Revolution — Building the Web Your Way." Read below for the rest of matria's review.
MODX Revolution - Building the Web Your Way: A Journey Through a Content Management Framework
author
W. Shawn Wilkerson
pages
622
publisher
Sanity Press
rating
9/10
reviewer
matria
ISBN
0985853204
summary
an extensive look at an amazing and extensible Content Management Platform
Known to the MODx community as "sottwell", I've been a developer and contributor to MODx since its beginnings, so I'm well-familiar with W. Shawn Wilkerson's contributions to the MODx community over the past six years. He is the founder of Sanity LLC, a technology integration company, and holds 9 degrees in programming and web design. His book on MODx Revolution, subtitled A Journey Through a Content Management Framework, was published in August of 2012 by Sanity Press, with ISBN 978-0985853204. It has some 600 pages, with 19 chapters divided into 5 sections.
This begins with the obligatory introduction to what MODx is (and is not). Use MODx as it installs for nearly instant, fully-functional sites, or turn it into a framework for complex web applications.
The second chapter introduces the Manager interface. This is an excellent place to start for new MODx users. We are taken step-by-step through the Manager, with each feature and function explained. Of special importance is the tree structure that lists the content Resources that provide the main content elements for each page, this tree structure reflecting the overall site structure.
Shawn explains how the Manager itself is built on the core MODx framework, and so it is customizable and even totally replaceable
The next five chapters discuss the basic building-block elements that are used to build a MODx site. The coverage of these elements is by no means superficial, everything from customizing the Manager forms for creating and editing them to how they are stored in the database to how to format and manipulate their final output on your web page is explained. Plenty of actual useful code samples and in-depth explanations make it easier to understand how MODx builds up a site using these modular blocks of content and content-generating elements. One entire chapter on Output Modifiers caught my attention here, as it covers a topic often overlooked or, conversely, overused.
The Quick Start chapter walks through the simple procedure to create a basic website after installing MODx, from a few basic System Settings such as a name for your site, through setting up the Template for your pages and assigning it to the Resources that will provide the main content for the pages, using Chunks, Snippets and Template Variables to add dynamic content to your pages, and installing and using third-party add-ons via the handy Package Manager. A complete site, with a dynamic menu structure, search functionality and a contact form can be set up in less than an hour, using any one of thousands of free HTML templates as the base Template.
The rest of this section goes on to show how common Web essentials such SEO, AJAX, friendly URLs and .js and .css minification can be easily arranged, to how a full-blown blogging platform can be added to your site with the Articles package.
One of the more frequent questions that comes up in the forums is how to use JQuery or other libraries, or how to handle AJAX in MODx. Basically, MODx doesn't interfere with your css or javascript in any way. But there are speed and optimization considerations in how and where Javascript links and code should be inserted, and MODx APIs can make processing AJAX requests or inserting data into Javascript functions clean and easy. A chapter on Javascript, CSS and JQuery works through several examples of how various features of MODx can be leveraged to automate best practices for everything from a simple JQuery slideshow to a complete AJAX-driven web application.
The MODx Revolution user management system is a complex network of users, user groups, roles and policies, based on the ACL model of user management. This section is vital to understanding how to control and manage user access to both protected sections of your front-end site and limit Manager functionality. With plenty of screen shots and examples, the reader is gently guided through the whole inter-related subject of organization and controls.
The chapter on Contexts explains how this feature can be used for dividing the site into sections. Contexts can be used to manage separate domains, allowing multiple websites to be managed from one MODx installation. They are also used to provide virtual subdomains or subdirectories for easy management of multi-language sites. Again, plenty of screen shots and examples open up the possibilities of using Contexts. Some of the limitations and pitfalls of using Contexts are explained and resolved.
Since this is not exactly a beginner's tutorial on OOP, the section begins with a brief overview of what OOP is, with some useful links to OOP and OOP in PHP tutorial sites. Then it continues by describing the fully object-oriented MODx Revolution API and the basic $modx object. MODx, like most CMS applications, relies heavily on the database, so there is an emphasis on understanding the database access methods and how MODx stores and caches data. Using the API simplifies just about every facet of MODx development, and the explanations and examples here make this a good reference to keep close at hand.
The foundation of MODx Revolution, the xPDO ORB/ORM object library, is extensively discussed. Coding best-practices are discussed. Real-world, complete, functioning and useful examples abound.
The section ends with how to install and use third-party add-on packages, and how to create your own packages.
Everything from MODx Revolution terminology through system settings and how the MODx parser works, ending with an interesting set of "rules", shared nuggets of hard-won programmer philosophy, make the Appendix another useful resource.
The book is clearly based on a deep understanding and love of programming, web development, and of MODx Revolution itself. One thing I especially appreciated about the layout of the book is the extra large font used for the code examples. It does't make for a pretty layout, but it's a great improvement in usablity over the usual prettier blocks of small, often hard-to-read text. This is even more significant when considering that Shawn is the founder and CEO of Sanity/Sanity Press. While typos and grammatical errors are common, this was understandably explained by the need to get such a book published and available before the fast movement of the web development world in general and MODx in particular make it at least partially obsolete. A year later, it's still covering material well within the leading edge of MODx Revolution functionality. The occasional personal ramblings actually give us an insight into Shawn's programming philosophy, and make the whole book seem more like a personal message, almost a conversation, than a cold presentation of facts. Overall, this is an excellent book, I very much enjoy it, use it, and recommend it.
You can purchase MODX Revolution - Building the Web Your Way: A Journey Through a Content Management Framework from amazon.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
This begins with the obligatory introduction to what MODx is (and is not). Use MODx as it installs for nearly instant, fully-functional sites, or turn it into a framework for complex web applications.
The second chapter introduces the Manager interface. This is an excellent place to start for new MODx users. We are taken step-by-step through the Manager, with each feature and function explained. Of special importance is the tree structure that lists the content Resources that provide the main content elements for each page, this tree structure reflecting the overall site structure.
Shawn explains how the Manager itself is built on the core MODx framework, and so it is customizable and even totally replaceable
The next five chapters discuss the basic building-block elements that are used to build a MODx site. The coverage of these elements is by no means superficial, everything from customizing the Manager forms for creating and editing them to how they are stored in the database to how to format and manipulate their final output on your web page is explained. Plenty of actual useful code samples and in-depth explanations make it easier to understand how MODx builds up a site using these modular blocks of content and content-generating elements. One entire chapter on Output Modifiers caught my attention here, as it covers a topic often overlooked or, conversely, overused.
The Quick Start chapter walks through the simple procedure to create a basic website after installing MODx, from a few basic System Settings such as a name for your site, through setting up the Template for your pages and assigning it to the Resources that will provide the main content for the pages, using Chunks, Snippets and Template Variables to add dynamic content to your pages, and installing and using third-party add-ons via the handy Package Manager. A complete site, with a dynamic menu structure, search functionality and a contact form can be set up in less than an hour, using any one of thousands of free HTML templates as the base Template.
The rest of this section goes on to show how common Web essentials such SEO, AJAX, friendly URLs and .js and .css minification can be easily arranged, to how a full-blown blogging platform can be added to your site with the Articles package.
One of the more frequent questions that comes up in the forums is how to use JQuery or other libraries, or how to handle AJAX in MODx. Basically, MODx doesn't interfere with your css or javascript in any way. But there are speed and optimization considerations in how and where Javascript links and code should be inserted, and MODx APIs can make processing AJAX requests or inserting data into Javascript functions clean and easy. A chapter on Javascript, CSS and JQuery works through several examples of how various features of MODx can be leveraged to automate best practices for everything from a simple JQuery slideshow to a complete AJAX-driven web application.
The MODx Revolution user management system is a complex network of users, user groups, roles and policies, based on the ACL model of user management. This section is vital to understanding how to control and manage user access to both protected sections of your front-end site and limit Manager functionality. With plenty of screen shots and examples, the reader is gently guided through the whole inter-related subject of organization and controls.
The chapter on Contexts explains how this feature can be used for dividing the site into sections. Contexts can be used to manage separate domains, allowing multiple websites to be managed from one MODx installation. They are also used to provide virtual subdomains or subdirectories for easy management of multi-language sites. Again, plenty of screen shots and examples open up the possibilities of using Contexts. Some of the limitations and pitfalls of using Contexts are explained and resolved.
Since this is not exactly a beginner's tutorial on OOP, the section begins with a brief overview of what OOP is, with some useful links to OOP and OOP in PHP tutorial sites. Then it continues by describing the fully object-oriented MODx Revolution API and the basic $modx object. MODx, like most CMS applications, relies heavily on the database, so there is an emphasis on understanding the database access methods and how MODx stores and caches data. Using the API simplifies just about every facet of MODx development, and the explanations and examples here make this a good reference to keep close at hand.
The foundation of MODx Revolution, the xPDO ORB/ORM object library, is extensively discussed. Coding best-practices are discussed. Real-world, complete, functioning and useful examples abound.
The section ends with how to install and use third-party add-on packages, and how to create your own packages.
Everything from MODx Revolution terminology through system settings and how the MODx parser works, ending with an interesting set of "rules", shared nuggets of hard-won programmer philosophy, make the Appendix another useful resource.
The book is clearly based on a deep understanding and love of programming, web development, and of MODx Revolution itself. One thing I especially appreciated about the layout of the book is the extra large font used for the code examples. It does't make for a pretty layout, but it's a great improvement in usablity over the usual prettier blocks of small, often hard-to-read text. This is even more significant when considering that Shawn is the founder and CEO of Sanity/Sanity Press. While typos and grammatical errors are common, this was understandably explained by the need to get such a book published and available before the fast movement of the web development world in general and MODx in particular make it at least partially obsolete. A year later, it's still covering material well within the leading edge of MODx Revolution functionality. The occasional personal ramblings actually give us an insight into Shawn's programming philosophy, and make the whole book seem more like a personal message, almost a conversation, than a cold presentation of facts. Overall, this is an excellent book, I very much enjoy it, use it, and recommend it.
You can purchase MODX Revolution - Building the Web Your Way: A Journey Through a Content Management Framework from amazon.com. Slashdot welcomes readers' book reviews -- to see your own review here, read the book review guidelines, then visit the submission page.
...yet another "revolutionary" cms. This one uses [[*SOMEVAR]] for template placeholders, instead of the now rudimentary [[?SOMEVAR]] or [[>SOMEVAR]] used by other obsolete cms'es.
Also, nice ad.
If you can't even bother to drop a few "RESTful"'s in your review, I'm not sure we can take you seriously.
How exactly does this CMS help me DRY my cloud?
THL phish sticks
My brain was unable to properly categorize this post. What language is this MODx thing built on? Is it a cool language like C, Perl or Python? Or a potentially hip thing with Javascript? Or is it built on something that makes me cringe, like ASP? Does it run on Unix? Node? Apache? Microsoft? The "Cloud"?
Without knowing any of these things, I'm not sure how to categorize this story, and I can't decide if I want to read this to learn or to condescend.
Oh wait ... "He is the founder of Sanity LLC, a technology integration company, and holds 9 degrees in programming and web design.". There it is. It's condescend.
I just finished a hand-coded revision to my personal website. It's small and modest and after going at it for about a week, it was clearly time to switch over to a CMS.
This is the fourth one I've come across that comes highly recommended (see also, Stacey, Bootstrap, and, obviously, Wordpress). What are the differentiators? How do you decide?
Any CMS, plugin, widget, app, template, theme, API, etc that touts itself as open source but has a "professional" version has historically given me nothing but headaches (in web development anyway). The open source is their marketing and the "professional" is their product. Their job is to make sure you need to move from their marketing to their product. Usually you'll never see it until you're in the middle of a project trying to do some common thing X or obvious thing Y and are told "sorry, that is only for PRO users".
Good luck.
There is no "Professional" version of MODx. Evolution (1.x) is the original code base, Revolution (2.x) is a complete rewrite with a new codebase. Both are free. Both have hundreds of free third-party add-ons.
More tools to efficiently create more sites for fewer actual visitors.
Go to the gallery (it doesn't hurt, really.) Sort by "Rank". Note that you've never seen any of these sites. Scroll down, noting that the thumbnails repeat (...) after 6 rows for a total of 24 unique sites.
Which is pretty good, considering how many distinct CMS tools against which all high "Rank" sites must be amortized.
One day something important will happen and the Western world is going to have to stop making so many web sites. And that sucks, because I think every brand and line of lingerie should have a complete site with lots of models, rebuilt from scratch every 18 to 36 days.
So in the mean time, yay for CMS tools.
Maw! Fire up the karma burner!
"The latest iteration of MODx, called Revolution, is entirely object-oriented."
Even setting aside the fact that regardless of what it means for you, ..., this sounds like a statement from the same category as "our software uses memory" or "our software has a user interface". It doesn't actually tell you *anything*, does it?
I'd like to add that "object-oriented" doesn't necessarily make a product better.
It must have been something you assimilated. . . .
Installs with MSSQL if you prefer.
Doesn't have to be. Everything can be "static"; all that goes in the database is the path to the files. Most PHP add-ons only have a basic stub in the database; everything else is in files.
Oh wow! Just what I needed, yet another CMS built in PHP that requires MySQL as the database backend. If I really wanted to be pained by that, I'd use concrete5. In reality, I'd choose Radiant, typo or refinery LONG before I'd choose anything PHP developed.
Yes, and for pity's sake no more frameworks. You know those things have started to become part of job application requirements? You can know the underlying codebase back to front but if you aren't familiar with whatever arbitrary shorthand the developers mashed together for the latest and greatest, you're out of luck. And rarely do they add much to any project except bloat, with a few notable exceptions like jquery-style interpretations. Bootstrap: CSS made simple! How in the name of god can you make CSS any simpler? Argh!
I have a client who wanted to implement ModX (Evolution, the prequel to Revolution). I took a look at it for them, and found it to be very simple to work with, and was quite flexible to be able to do what you needed with it.
... it's worth a look.
It has its own coding standards, and allows for static templates or DB storage for HTML. It's definitely easier to use/customize than Joomla, and some of the other (more popular) CMS's. Out of the box, it just works, and works well.
Would I recommend it for everyone? Definitely not. I would compare its ease-of-use to WordPress, but I tend to like it better... if for no other reason than its not WordPress.
Just my simple 2
I was using MODx Revolution for around two years, and it has many good sides, about which you can read on their website, in the books they published and in their wiki. But there are also some issues that led me to seeking an alternative now. MODx developers, please take this as an attempt of constructive criticism (and sorry for my imperfect English).
This isn't the full list. This is just some random (but major) inconveniences I can recall right now. To me, MODx is a great idea which for some reason wasn't implemented well.
Yeah, and I suppose you start your car every morning by asking the neighbours to help you bump start it ? Oh, no, wait, you use the starter motor ! Can we get past this "javascript is teh viruz" mentality from 1995 and just accept browsers need a functional scripting component to do *anything* useful.
Well, there's one big object will all of the functions in it.
That's OO right?
Python coder | PyQt Applications | Writer
It makes a lot more sense if you interpret "simple" to mean "generic".
Python coder | PyQt Applications | Writer
What speaks volumes about the "quality" of the CMS is how much time it can stay on your web server without being hacked. Answer: not so long... This "thing" is full of security holes. About one hole every 2 or 3 months, recently. STAY AWAY!
That's beyond ignorant, it's just silly. MODx uses Confluence and Jira for its documentation and bug tracking; as a free Open Source project it got a free Confluence account.
Yes, it's a reasonable analogy. And now in 2012, people have e-readers and tablets. That's the point, technology moves on. Idiots who decry javascript for no other reason than "the web used to work without it". I bet the same idiots would complain about the invention of the printing press.