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.
-
- 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:
It could also contain a function. This example returns the return value of the function:
function getText() {
return 'SomeText';
}
return getText();
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