We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • The core "uber-snippets" for sure should be covered I suppose:
    [*] Ditto (with working filtering on Tags example since this seems to be the major recurring problem)
    [*] Jot
    [*] Wayfinder (with URL reference to example implementations)
    [*] eForm (current documentation is really great actually)
      Ryan Thrash, MODX Co-Founder
      Follow me on Twitter at @rthrash or catch my occasional unofficial thoughts at thrash.me
      • 36805
      • 354 Posts
      I would very much like to have this cheat sheet! Here are my thoughts:


      • A complete list of available ’constants’ like: [(site_url)],[(base_url)],MODX_MANAGER_PATH and the MODX_ASSETS_PATH (which will be available soon as i heard)
      • An overview of all the handy things the MODx Document Object includes
      • ModX tags/sytem-defined tv’s like [*pagetitle*],[*content*] etc.
      • Core snippet quick reference (might be hard to keep it short though)
      • a snippet ’skeleton’ in foobar-fakefunction-style which demonstrates the most essential things like:
        [list]
        [li]the runsnippet usage
      • the short-logic-style commonly used for snippet parameters regarding checking if its set and ensuring a default value (maybe also include other common sanity checks)
      • the if(!function_exists(foo)) {} thingy which is important in snippet coding
      [/list]

      And of course all the other things i currently didn’t think of smiley

      Maybe we should start a wiki page dedicated to this? Just for putting all of the suggestions together in a draft version of some sort.