We launched new forums in March 2019—join us there. In a hurry for help with your website? Get Help Now!
  • Pity. I made a mistake in my post. Yes, I supplied the chunk names as appropriate but I just now realized I left the template variables as TV1 and TV2. Corrected those with the names of TVs and viola! Thanks. I appreciate.

    Seems snippet are actually another name for function.
      • 3749
      • 24,544 Posts
      No, a snippet is just a piece of PHP code that MODX executes when it encounters the snippet tag. It may or may not contain functions, which are always preceded in code with the word 'function'.

      For example, this could be an entire snippet:

      return 'Some Text';


      It could also contain a function. This example returns the return value of the function:

      function getText() {
         return 'SomeText';
      }
      
      return getText();
      
        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
      • Clearly those who work with MODx frequently like myself will need to read up key concepts. It's been a trial and error thing so far, I think that's why I keep asking questions with obvious answers. Thanks always