Updated on | #modx, #plugin, #snippet

MODX tutorial - Samples of Snippets, Chunks or Plugins

MODX is a PHP based free, open source content management system and web application framework for publishing content. A key feature is that you have full control of all metadata and URL structure for Search Engine Optimization (SEO) purposes. Furthermore, it has role-based permissions for the the front and backend and a great template system. On this pages, you can find information about MODX Extra's as well as some Snippets, Chunks or Plugins.

I've been searching for a good comment system for a while now. So I ended up going with Disqus because of the easy social media integration and to use threaded replies. The integration of Disqus in MODX itself is really easy: You have to throw the Universal JavaScript in a Chunk and insert this into your template. But I realized that the JavaScript method can't be used as content for search engines. So, I started to develop an add-on for MODX, which is using the Disqus API and integrates the content from Disqus to my Website.

Quick Response Codes (QR Codes) are used to take a piece of information from a transitory media and put it in to your smartphone or tablet. The reason why they are more useful than a standard barcode is that they can store much more data, including text, emails, websites, phone numbers, geo coordinates, SMS message, contact information, e-mail message or WIFI access. This Extra is called LudwigQRcode and it is using the PHPQRCode library, that provides an API for creating QR Code barcode images in Scalable Vector Graphics (SVG) for Modx.

Social buttons from Facebook, Google+ or Twitter became very popular. However, these buttons send private information to these social networks even if the user doesn't click them, but even if they are just present on a webpage. These social networks are able to track which websites users are visiting and are able to build fairly complete browser histories of their users. Hence, your visitors have no control about their identifiable information, which could be sexual orientation, political and religious views, race, substance use, intelligence or personality.

Caching is probably the most important technique you should use in MODX projects. Of course, scaling your hardware is one of the best solution for load problems, but you have to take some money in your hand to buy hardware as well as to finance electrical power. I'm using a Server in my home environment with the objective to save electricity. Hence, I've bought the AMD E2-2000 Mini-ITX-Mainboard E2KM1I-DELUXE from ASUS, which has to do all the work. I don't want to scale my hardware, which is why I need another solution, called caching, for MODX.

MODX is a free, open source content management system and web application framework for publishing content on the web where it is essential that you always back up your content and have a plan for recovering from a system failure. Hence, you should back up your personal or critical work data on a regular basis. In this tutorial I will show you how you can backup MODX very easily as well as how you can upgrade MODX by using the source code on GitHub.