Modx quick variable reference

Posted on November 30th, 2009 by thiswayup.
Categories: dev.

Just for my own personal reference. Here’s a quick list of the different types of variables in Modx.

  • [(varName)] = site setting, set site wide
  • [*varName*] = content or template var
  • [*#content*] = content var, like before sets in the document edit screen but the hash allows Quickedit
  • {{chunkName}} = chunk
  • [[snippetName]] = cachable code snippet
  • [!snippetName!] = uncached code snippet
  • [+placeholderName+] = place holder used inside snippet templates such as Ditto to show page id or Page title. Need to double chk what the specific snippet supports

0 comments.

Leave a comment

Comments can contain some xhtml. Names and emails are required (emails aren't displayed), url's are optional.