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.
-
☆ 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.