Navigation
Getting ready
You will need the getResources Package for this task.
How to do it...
- Create the parts you will need in your Manager
- Create a blank template to use
- Create a document and set the content type to xml
- Create a snippet titled getTime and use the following code.
returnstrftime($scriptProperties['format']);
3. Paste the code containing xml nodes, template variables, and snippet calls, example code.
How it works...
This recipe is courtesy of Gary Nutting, a MODx Core developer. This demonstrates how simple it is to generate RSS feeds in Revolution.
<rss version="2.0">
<channel>
<title>Generating Custom RSS Feeds</title>
<link>http://brianyang.us/</link>
<description></description>
<lastBuildDate></lastBuildDate>
<language>en-us</language>
</channel>
</rss>
There's more...
Using this convention we can quickly and easily generate and maintain lists of feeds for our users to syndicate our content.