by W. Shawn Wilkerson
This article demonstrates how to utilize getResources or any other Snippet to create semi-static content by being ran only when necessary.
The following code can be used as an Inline PHP Widget For the MODX Dashboard or regular Snippet.
Using MODX Revolution Snippets as helper functions can provide a very simple method to return standard-formatted output to the page.
Simple Snippet to display raw source code
MODX Revolution: Building the Web Your Way
Written by: W. Shawn Wilkerson