Grow your CSS skills. Land your dream job.

MODX deserves more “buzz”

  • # February 19, 2013 at 4:05 am

    ##Hi all,

    I am aware that I am a little bias, since I am a MODX Ambassador for The Netherlands (not a payed job b.t.w.), but I really think that MODX Revolution deserves more “buzz” as a amazing flexible CMS and framework.

    ###Systems I tried/used

    – WordPress
    – Joomla
    – Drupal
    – Magento
    – Concrete 5

    Of course: there is no “winner” or “best” CMS, we use the best tool for the job, but I would like to explain why MODX is great and a lot more flexible then most other CMS systems.

    ###Start clean

    After installing [MODX Revolution](http://modx.com/) you start with a blank page, no template, base structure or tags, just a blank page. **You** decide what to build in any system/structure you want.
    This might be harder for new users, but the first thing I usually do when using WordPress or Drupal is clean out almost everything to start fresh…

    ###Use your code

    MODX Revolution will work with your code, just paste in your HTML in a template and add one tag in the header

    ++site_url` />

    Now your HTML will work in MODX (maybe adjust you CSS, image and Javascript URL paths) nothing else is needed.

    ###Tags are so easy!

    MODX uses three basic tag types (there are more, but these are the most used)

    – Chunks (bits of HTML)
    – Template Variables (custom fields)
    – Snippets (bits of PHP)

    With these tags you can make yout template interact with MODX and start using the power of MODX.

    ####Tag basics

    MODX uses very basic tags, they are easy to read use and understand. These is no loop, php or other structure needed.

    Some examples:

    **Get the content of a page**

    *content

    **Show a HTML chunk called “template_header”**

    $template_header

    **Show a Template Variable called “page_tagline”**

    *page_tagline

    ####Output filters and combining tags

    MODX Revolution can use these tags in very powerfull ways, output filters and combining Chunks, Template Varibales and filters (even: a Template Varibale inside a Template Varibale inside a chunk!)

    Some examples:

    **Show a HTML chunk called “contact_form”, but do not cache it.**

    !$contact_form

    **Show a Template Variable called “page_tagline” in a H3 tag, but only if the tagline is filled in.**

    *page_tagline:notempty=`

    [[*page_tagline

    `]]

    **Output a list of child Resources of the current Resource, using the “myRowTpl” chunk**

    !getResources? &parents=`[[*id` &tpl=`myRowTpl`]]

    The “myRowTpl” chunk could look like this:

    <div><h2>+pagetitle</h2><p>+introtext</p></div>

    A example of a basic MODX Revolution template

    $template_header

    *content

    $template_footer

    The “template_header” chunk could look like this:

    < !DOCTYPE html>


    ++site_url” />
    ++modx_charset:lcase” />
    *introtext” />
    *keywords:notempty=`[[*keywords,`]]my,keywords” />


    The “template_footer” chunk could look like this:


    ###MODX is great for SEO

    MODX Revolution is great for SEO becouse you descide your site structure, tags, description and titles.
    Using Friendly URL`s your links are readable and clean.

    **A nice MODX header, automaticaly generated for SEO**:

    *introtext:empty=`[[*content:strip_tags`:limit=`200`]]” />
    *createdby:userinfo=`fullname`” />

    *keywords:notempty=`[[*keywords,`]]your,own,general,keywords” />`

    ###All the plugin’s (extra’s) you need

    There are loads of [great plugin’s](http://modx.com/extras/) available for MODX Revolution.

    **A few great plugin’s**

    – [SimpleSearch](http://modx.com/extras/package/simplesearch) (add great search functionality)
    – [Wayfinder](http://modx.com/extras/package/wayfinder) (amazingly powerfull and flexible navigation)
    – [getResources](http://modx.com/extras/package/getresources) (get any content from anywhere to any place)
    – [MIGX](http://modx.com/extras/package/migx) (make Template Varibales even more flexible)
    – [Articles](http://modx.com/extras/package/articles) (create a blog in MODX Revolution)
    – [FormIt](http://modx.com/extras/package/formit) (simple an easy contact forms)

    ###MODX Cloud

    Need power and you ite in the cloud? The new [MODX Cloud](https://modxcloud.com/) will serve your needs!
    With MODX Cloud you can launch, clone, move, share & test MODX sites in seconds.

    ###The MODX community is amazing

    For sure the best thing about MODX is the community. On the new [MODX forum](http://forums.modx.com/) and Twitter (#MODX) users are always happy to help.

    Please give [MODX Revolution](http://modx.com) a try, I would love to hear your thoughts about MODX.

    [MODX Documentation](http://rtfm.modx.com/dashboard.action) – [Getting started with MODX Revolution](http://rtfm.modx.com/display/revolution20/Getting+Started)

    # February 19, 2013 at 4:30 am

    I used MODX just over a year ago and ultimately moved (at the time) to GetSimple CMS. Nowadays I would probably use Kirby instead. I also use WordPress for larger sites that multiple people edit.

    My experience of MODX was that the template syntax wasn’t particularly intuitive (although I’m sure it is powerful). However, my biggest gripe, and the reason I ultimately moved, was that I couldn’t find a way to make the cache do what I needed it to. It was a nightmare to turn off and was inconsistent with what updated with no clear means of adjusting it. The settings panel was something like 10 pages of settings that weren’t particularly clear as to what they pertained to.

    Sorry to be negative, but that was my experience. However, I’m well aware that a lot changes in a year (and a bit) and it is highly possible a good number of my problems have since been fixed.

    # February 19, 2013 at 4:46 am

    Hi Ben,

    Thanks for your response. Indeed many of your problems have been fixed…
    Settings and docs are a lot better now.

    Funny that you say that the template syntax is not intuitive, to me it is way better then WordPress or Drupal… (guess that this is different for everybody)

    The Caching part have been a big topic for a long time now [see the is post](http://modx.com/blog/2012/10/29/optimization-with-getcache-and-custom-cache-partitions/)

    # February 19, 2013 at 12:45 pm

    > Thanks for your response. Indeed many of your problems have been fixed… Settings and docs are a lot better now.

    To be honest, this was the main reason why I gave up, so it’s nice to know they’ve been resolved. I probably won’t go back, but that’s mainly because I’ve settled in with Kirby and WordPress now.

    Regarding templating, I think it just depends on what style you find easiest to read. I really like my PHP, so Kirby (and even WordPress) templates just look more familiar to me.

Viewing 4 posts - 1 through 4 (of 4 total)

You must be logged in to reply to this topic.

*May or may not contain any actual "CSS" or "Tricks".