We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
    • 3749
    • 24,544 Posts
    Quote from: Everett at Aug 31, 2009, 07:41 PM

    and handle some of the common MODx parlance (e.g. Tpl = Template = a Chunk used for formatting).

    We’ve kind of settled on "Tpl Chunk" for those to prevent confusing them with Templates. They’re definitely Chunks and they’re definitely not MODx Templates. I’ve seen a lot of confusion caused among newbies from calling them Templates. I’ve found that in documentation, using "template-like" to describe them works well.
      Did I help you? Buy me a beer
      Get my Book: MODX:The Official Guide
      MODX info for everyone: http://bobsguides.com/modx.html
      My MODX Extras
      Bob's Guides is now hosted at A2 MODX Hosting
      • 9207 ☆ A M B ☆
      • 2,475 Posts
      Yes, thanks for clarifying. I was just referring to the abbreviation. I’m embarrassed to say that it took me a while to realize that "Tpl" stood for "Template", even though the variable-so-named was actually referencing a Chunk (e.g. &outerTpl=`name_of_chunk`). "Template" in this case stands more for its role and is not a technical term.

      Nonetheless, the point is that these types of practices may be confusing for the newcomer (as the original poster pointed out). Personally, I find it much clearer to use longer variable names to make the usage clear (e.g. &outerChunk=`name_of_chunk`) -- one friend of mine joked about the doings of the "ASCII Preservation Society" every time he came across hopelessly abbreviated variable names.