Getting Ditto to work in MODx Revolution

Ditto does not work correctly out of the box, you need to do some minor changes

If you just switched to MODx Revolution and want to reactivate your favorite Snippets, here comes a good news. Ditto has already been ported and is available through thee built-in Transport Package System.

Sadly Ditto does not really work as expected if you try to work with the tutorials that have been made for the old MODx Evolution, cause some changes in Chunk-Calls and Placeholder-Calls have been introduced in Revolution.

If your experience the date to be malformed, this is due to the fact that MODx tries to reprocess the old placeholder [+date+]. Revolution has these new functionalitys called Input / Output Filters which behave very similar to PHx modifiers from MODx Evolution.

This is how my template looks when it is finished, please note that it is HTML5 compliant, if you do not want this just replace <article> with its equivalent inn HTML 4: <div>

<article pubdate=”26.04.2010″> <h3><a href=”blog/tutorials/ditto-in-modx-reovlution.html” title=”Ditto in MODx Reovlution”>Ditto in MODx Reovlution</a></h3> <p> by Arne Tarara on <time>26.04.2010</time></p> <div> </div><!– close .entry –> </article><!– close .ditto_result –>

Leave a Reply