Sunday, October 23, 2005 | |
Experimenting with publishCategoryRssDecided to try my hand at a little dabbling. Copied radio.weblogs.publishCategoryRss to workspace.myPublishCategoryRss. Made some edits and ran it as a standalone script, saw that I could make changes in the script and see changes in the category RSS file. Made updates to the following prefs:
As Tom Clifton mentioned in his post I referenced yesterday, it looks like adding a callback for publishCategoryRss did not work. Did some searching for a solution, found this page from Mark Woods on running macros to generate new pages. Following his lead, created user.radio.macros table, copied myPublishCategoryRss to it, then edited index.txt in the category folder to add a call to this script. However, this did not have any effect on the category RSS file. Looked some more for other ideas, saw this page describing ways to publish a Radio category to a Salon weblog, read Mark Paschal's trick of waiting a few seconds in his Footbridge tool to be able to access data in weblogData.root. Decided to add a callback in user.radio.callbacks.upstream to my script, since that should run after all of the normal publishing tasks are complete. Checked my category RSS file, and that seems to have done the trick! Deleted the following changes:
Did a few tests with uploading other files. Created a gems directory in the devknowledgeorama folder, saw it upstreamed. Added a OPML file, saw it upstreamed fairly quickly. 1:56:39 PM |