Howdy! Welcome to my humble web presence. I'm Mark Hamstra, the CEA at my latest venture modmore, where I spend most of my time developing and providing support for awesome tools and extras for MODX Revolution.

This website is where I share my thoughts, cool projects and other oddities related to MODX, xPDO and ExtJS. Sometimes I post three blogs in a day, sometimes there's no update in a year. Read a random article.

Meet modmore!

Oh man, has it been over a month already? Please allow me to finally introduce to you modmore - More for MODX.

modmore is what I've been working on since resigning from my job at MODX. It launched for the general public on June 16th. My goal with modmore is to build a brand (which is bigger than just me) that makes working with MODX easier, better or just plain awesomer. Right now there's some really cool premium extras that provide designers and developers better tools for their clients, but in the future there will be other things, too, that I'm not yet going to talk about, hehe.

10% of all revenue of modmore is directly donated to MODX, too, which is just one of the ways I try to contribute to the future of the MODX core.

Thanks to modmore, I also get the chance to revamp some of the open source extras I've developed in the past, something I've only had limited time for in the past year. I just updated HandyMan to 1.0.0-pl for example (basically it works again after being broken for.. I don't know how long), I've started working on an all-new ImportX 2.0 that will blow your socks off and VersionX is next on the list with some nice new features to keep your content secured.

So.. what can you get at modmore? Besides €15 free credit for your first purchase when you sign up now, I mean.

At time of writing, three premium add-ons are available.

Redactor

Currently the #1 selling add-on, Redactor is a really sweet rich text editor. It is based on years of work from Imperavi, and JP DeVries and myself have been spending a lot of time on making a really smooth integration. Since the first few beta releases I've been using it to write a lot of content myself and I really love the clean editing experience. Oh, but don't take my word for it - check out what others said about Redactor.

Redactor is available for €25 (that's give or take USD 33 / GBP 21,50 at current exchange rates) and you can read more and purchase it here.

SimpleAB

If you're working with a larger client that wants to optimise conversions, SimpleAB is for you. It's a tool that lets you natively do A/B aka Split testing within MODX. Because it's all native, there's no performance hit from talking to external services and the user has no way of knowing if they're seeing a certain variation of your design or content. SimpleAB is available for € 49 (~ USD 65 / GBP 42) with everything you need to know here.

MoreGallery

The latest addition to modmore is still in beta, but it already is catching up with Redactor in terms of sales! It's almost like people were waiting for a super user friendly, fast and flexible Gallery add-on that puts their galleries in the resources tree. Cause that's what MoreGallery is! Of course with drag and drop uploads and sorting of images and pretty much infinite possibility for front-end theming. Sign up for the beta.

All in all, modmore is just getting started and the first month definitely shows the potential premium extras have in the MODX world. I can't wait to bring you more great stuff and you can count on exactly that to happen.

Read the blog post at modmore introducing the concept in a bit more detail.


Read 0 comments and share your own thoughts!

Advanced xPDO Relationship Criteria

Sometimes you need to define multiple criteria in xPDO schemas to make sure your relations are properly defined. I came across this while working on a project that needed some existing databases integrated. This specific case had one "fl_translations" table that contained the translations for thousands of objects. To get the translations for a specific object, you would need to filter that table on the "originaltable" field. For example, one row might have originaltable=fl_colors and contains the translation for the color in a specific language.

In order to properly define this relation, I went browsing the MODX core schema for some ideas, and I stumbled across a pretty much undocumented feature of xPDO Schemas: relation criteria!

Here's a snippet of the final schema:

Basically, while with a normal relation you would immediately close the <composite> (or <aggregate>) element, but if you want additional filters (criteria) on the relation, you can define that. A simple <criteria> object with a target (I presume but haven't tested that you can add an additional <criteria> object with a target of local), and inside it a JSON object with the fieldname (of the foreign object) and the value it should have (in this case, fl_colors, as that's how it was set up).

This way of defining relations is very powerful and I imagine some really complicated relations could be defined once (in the schema) and reused without knowing all the details by simply calling getMany('RelationAlias').

The core uses this type of relationship for defining the PropertySets relations on elements and also in the modAccess definition. For example, here is a snippet from the core schema for modChunk:

xPDO is quite nifty eh?


Read 0 comments and share your own thoughts!

Setting a favicon for the Manager

Ever find yourself having so many tabs open in your browser, that you can't see what is what anymore? I just had that and ended up going into the wrong MODX manager tab to make changes. Argh!

Luckily there's a simple way to give the MODX Manager a distinct favicon if you want to, and if you find yourself in some sort of tab-ception and can't find the right tab, I encourage you to do the same.

Simply open your (Revolution 2.1 or up) manager, and head over to System > System Settings.

In the search field in the grid toolbar, type "favicon" and hit enter. You should find the manager_favicon_url setting.

Double click in the value column to open the editor, and then add either the full URL to your favicon, or an URL relative to the manager directory. In the screenshot below you'll see I referenced an icon for the modmore site - this shows me that I'm in the live site and not my local install I was working on..

Other urls that may be a nice fit for your manager (all of these ship with Revolution):

  • templates/default/images/modx-theme/grid/group-by.gif
  • templates/default/images/modx-theme/grid/hmenu-lock.gif
  • templates/default/images/restyle/icons/context.png
  • templates/default/images/restyle/icons/computer.png
  • templates/default/images/restyle/icons/database.png
  • templates/default/images/restyle/icons/disk.png
  • templates/default/images/restyle/icons/layout_edit.png
  • templates/default/images/restyle/icons/plugin.png
  • templates/default/images/restyle/icons/resources.png
  • templates/default/images/restyle/icons/template.png
  • templates/default/images/restyle/icons/user.png

Read 1 comments and share your own thoughts!