MODx Revolution Tags

MODx tags have a slightly different style in MODx Revolution. All tags now start with [[ and end with ]]. This makes the document parser faster and more efficient since the complex code used to identify the old-style tags is gone. Once you get used to the new tag format, you'll find that it's easier and less likely to lead to entry errors.

Here's a list of the tag changes:

MODx Tags

OldNew
Resource Tags
[*ResourceField/TV*] [[*ResourceField/TV]]
Chunk Tags
{{Chunk}} [[$Chunk]]
Snippet Tags
[[Snippet]] [[Snippet]]
Placeholder Tags
[+Placeholder+] [[+Placeholder]]
Link Tags
[~ResourceId~] [[~ResourceId]]
Setting Tags
[(system_setting)] [[++SettingName]]
Language Tags
No Tag [[%LanguageStringKey]]

 

Cache Control

OldNew
[!Snippet!] [[!Snippet]]
No Tag [[!$Chunk]]
No Tag [[!*ResourceField/TV]

 

Note that in Revolution, you can put parameters in the URL for use with $_GET by simply adding them to a link tag:

[[~12? ¶mName=`value`]]

Revolution will work out the appropriate form.

Thank you for visiting BobsGuides.com

  —  Bob Ray