Quote from: sophieschoice at Feb 09, 2013, 08:03 AMBasically, with both plugins chunks, TV's and tpl's are difficult for me. I don't quite get the implementation part. I do grasp the concept for chunks and tpl's though...
It's confusing at first, but once you get it, it's really simple. When MODX sees a chunk tag, it replaces it with the contents of the chunk named in the tag.
When MODX sees a TV tag it replaces it with the value of the TV for the current resource.
When MODX sees a snippet tag, it replaces it with whatever the snippet returns.
When a chunk or resource has a placeholder tag, MODX replaces the tag with the value of the placeholder. Those values are usually set by snippets.
Extras like Wayfinder and Breadcrumbs have a Tpl chunk. For each resources they process, they start with the Tpl chunk, and replace its placeholders with the values from the resource they are currently processing. They add each processed chunk to their output, and when they're done, they return that output -- which replaces the Wayfinder or Breadcrumbs snippet tag.