Showing articles from all topics (13) page 3
HTML-over-the-wire is a method whereby an AJAX request returns HTML instead of JSON. This methodology allows us to quickly build reactive, modern interfaces with the tools we use every day. MODX is the ideal CMS for working with HTML-over-the-wire as its powerful template syntax, combined with chunks and output modifiers enables us to write our logic directly in our templates. HTMX is one of a number of libraries that enable HTML-over-the-wire using simple HTML attributes. This article looks at HTMX and how to integrate it with MODX to enhance your websites and create more powerful applications.
MODX Output Modifiers bring PHP logic into HTML. They enable you to generate DateTime stamps, image thumbnails, IF statements, set defaults and pretty much anything else you can think of. In this article, we'll look at some of my favourite MODX output modifiers and how you can create your own.
This article explores an issue I faced when working on a Danish language website which required me to build an A-Z filter list using different strings. The issue I faced was down to UTF8 Special characters and multibyte characters not working as expected when trying to access individual characters from a string.
One of the reasons why MODX is our CMS of choice is because of its innovative template variables. Simply put, a template variable is a custom field for a MODX resource, this means we can add extra information to a resource/ webpage without having to hand-code or 'Hack' it in. Please note that this is a very long article with a few tricky bits, take your time reading it to be sure you understand everything.