I am working on a proof of concept for displaying hundreds of rates. An xml file is generated each week from another source. I created a snippet that parses it and formats the nodes with a template. Which is fine for the main rate page. But the site owner wants to be able to refer to certain rates throughout the site. Is there a better way? Should I use the api to update the chunks each week? I did add parameters to the snippet to just call a specific node or get all. Just curious if anyone had a better approach.
DropboxUploader -- Upload files to a Dropbox account. DIG -- Dynamic Image Generator gus -- Google URL Shortener makeQR -- Uses google chart api to make QR codes. MODxTweeter -- Update your twitter status on publish.
Hmm.. I would imagine each rate to have a unique key?
Based on the information you provide, I would suggest parsing the XML data into a cache file (likely as some associated array) and use a snippet that returns just the info you need from that cache file based on the unique key or something. If you have multiple pieces of information per rate, you could parse just that rate through a chunk in those scenarios.
DropboxUploader -- Upload files to a Dropbox account. DIG -- Dynamic Image Generator gus -- Google URL Shortener makeQR -- Uses google chart api to make QR codes. MODxTweeter -- Update your twitter status on publish.
I think I will split it into two snippets. One that is run each week to read the XML files and store them in cache files. Then the other to check and display the data from each cache file.
DropboxUploader -- Upload files to a Dropbox account. DIG -- Dynamic Image Generator gus -- Google URL Shortener makeQR -- Uses google chart api to make QR codes. MODxTweeter -- Update your twitter status on publish.