RSSAmplifier

Blog

Blog RSS Feed :: Mark Hamstra | MODX Development & Services

Blog RSS

markhamstra.comRSS feed ↗10 posts

Latest posts

Using ULID primary keys in xPDO

You've probably heard of UUIDs as a way to have unique identifiers for objects. But have you heard of ULIDs? I sure didn't until @PhilSturgeon tweeted about it, but since then I've taken a closer look and just finished implementing them into an xPDO project that was using UUIDs until now.

MODX, PHP & session garbage collection

When did you last check the size of your modx_session database table? Was it huge, like gigabytes huge? If so, you're not alone. Let's look at this problem and understand how to fix it.

Making data available for setup options and resolvers in xPDO Packages

For a recent extra, I needed to get some arbitrary data into a package, in such a way that it's available for both the setup.options.php and the resolver - without duplicating that data. After some time I found a way to do that with package attributes.

Reconnecting xPDO in long running processes

For SiteDash I built a worker queue, based on MySQL, to handle processing tasks asynchronously. There is a central database and separate worker servers inside the same private network that poll for new tasks to execute. These worker servers run PHP, with xPDO 3, to perform the tasks the application has scheduled. One problem that would occasionally pop up is that the worker servers would lose…

Dealing with deprecation notices in MODX 2.7

I'm writing this post on the brand new MODX 2.7, released earlier this week. Among new features like a trash manager, form customisation for create and update in the same set, purging old packages and lots more, there's one more change you're likely to start experiencing soon: deprecated features.

What happened to MODX 3?

Earlier this year, MODX3 was all the rage, with weekly updates and an immense sprint that was actively reported on social media. Since the final MODX3 project statement in July, which included a first alpha build for testing, it has been a bit quieter. At least, from a communication perspective. So.. what's happening?

Recap of the largest MODX Meetup ever in Leeuwarden

On Wednesday, modmore hosted the largest MODX meetup ever in Leeuwarden, the Netherlands, with 38 MODXers in attendance.

Tip: Creating .htaccess files in the manager since MODX 2.5.7

Since MODX 2.5.7 it's no longer possible, out of the box, to create .htaccess files. You might run into this when setting up a new MODX site with friendly URLs, where you get an error when renaming the shipped ht.access file to .htaccess. Luckily there's an easy way to get that back.

Tutorial: Creating custom field types in Formalicious

I've recently been working on a project with Formalicious where the client requested dynamically-filled select inputs. This is pretty straightforward to set up, as shown in this tutorial.

A look at PHP Usage with MODX Revolution

The PHP Version usage of MODX sites can be tracked by the Package Providers used. modmore offers such a package provider for our free and premium extras, and in this article we've taken our sample of 3565 MODX sites running v2.4 or up, and summarised the PHP version they use by minor version.