Tag: Revolution


There’s a lot of sites incorrectly showing how to use site_url in both MODx Evolution and MODx Revolution. Primarily, I use site_url with the html base tag. If you don’t already know the base tag goes inside head and specifies the default address.

In MODX Revolution, our code in a template would look like:

<title>Some Revolution Page</title>
<base href="[[++site_url]]" </>

In MODX Evolution, our code in a template would look like:

<title>Some Evolution Page</title>
<base href="[(site_url)]" </>

Hope this helps.

Wayfinder in MODx Revolution

When I first tried MODx Revolution (which I did try before MODx Evolution) I found the documentation to be pretty good except about snippet syntax. The tag syntax has changed from MODx Evolution to MODx Revolution.

[Wayfinder? &startId=`0`]

has to changed to

[[Wayfinder? &startId=`0`]]

More information can now be found here for all of the tag syntax changes.