There are 2 types of Snippets, those that need additional files and those that are self contained. All snippets will have a corresponding ’snippet’ in the manager. You will need to follow the instructions for each snippet to be aware of the details for that particular snippet. The general steps are:
Step 1 - In the manager go to Resources > Manage Resources in the main menu and select the Snippets tab.
Step 2 - Now select ’New Snippet’. On the create/edit snippet page give the snippet it’s name (this is how it will be referenced within MODx) and add a description to make it easy to identify the snippets function.
Step 3 - (not always required) Upload the snippet folder to the /assets/anippets directory in our MODx installation
Step 4 - Paste the code from the snippet file you downloaded in to the ’snippet code (php)’ field. Snippets require the php <?php ?> tags.
Step 5 - Save and you are ready to use
Now add the snippet call to your MODx document [[MySnippet]] and it should work.
It is important to read the snippets documentation for any particular things to consider while installing. In the repository most snippets have installation instructions available.
Here is the documentation page on installing snippets:
http://www.modxcms.com/adding-snippets.html
Here is some good info on Snippets:
http://bobsguides.com/modx-snippets.html
Hope this helps.