Quote from: weezy at Sep 27, 2007, 06:48 AM
every time i add a new snippet. I call it n it produces the whole snippet code.Is it that i dont use any snippet parameters or what?
From the MODx 101 section of the forum:
[FAQ] My snippet call isn’t working ...
« on: Jan 05, 2007, 08:59 AM » Quote
--------------------------------------------------------------------------------
Probably the biggest recurring problem with snippets is that users overlook the syntax of calling snippets. Here’s two basic guidelines:
Use backticks around your parameters, not single-quotes: ¶m=`foo`
If you are working with a snippet that needs to process a form, always call it uncached: [!snippet?param1=`foo` ¶m2=`bar`!] (or put it on a document that is set to not be cached in the Page Settings tab)
If your page simply prints the snippet call rather than executing it, check the spelling and case of your snippet name in the call and make sure it matches the actual name of the snippet. Snippet names are case-sensitive.
If the parameters in your snippet call are not reaching your snippet, make sure there are no spaces around the equals signs in the call.
--------------
Bob