Using non-bundled snippets
Now that we have learned and discovered how to use the snippets that come bundled with MODx, let us explore how to use new snippets that are available online. For this example, we will consider one snippet called DittoCal
. Snippet DittoCal
allows navigation of the blog based on dates.
Installing a snippet
To install a snippet, you have to perform one or more of the following three steps:
1. Download and extract the snippet.
2. Create a snippet by using the MODx Manager interface with the available snippet code.
3. Copy the required files to the appropriate directory.
Downloading and extracting a snippet
MODx snippets can be downloaded from http://modxcms.com/extras/. The DittoCal
snippet can be downloaded from http://modxcms.com/extras/package/?package=99. Once downloaded, you will have a ZIP file. Extract it in the same way as you extracted MODx in Chapter 1, What is MODx. Notice that although the procedure for installing most custom snippets is the same as is given...