Tuesday, November 05, 2002 | |
On the off-chance somebody is interested, I have made my storyRoll macro available for others to use. Download it, install it (in user.radio.macros), then drop a line in the appropriate template (e.g. #homeTemplate.txt): <%user.radio.macros.storyRoll()%>You will probably want to dress it up in your own way. Each link uses the blogrollLinkedText style. The list produced includes every story in the stories directory hierarchy except, stories in the stories directory itself, any file named "index.*", any file prefixed with a "#", and any story that specifies the #flindex false directive. 5:47:34 PM |
I made a change to the design for the addStoryShortcut script in yesterday's piece, Improving Radio's Story Shortcut Automation. The script is now simpler, works for all stories, and does not require a change to the #template.txt file. Updated install and usage instructions are in the story. I also provided some instructions for uninstalling the old version of the macro. I apologize for the inconvenience I caused by neglecting an important test case. 11:30:06 AM Google It! |
Mark Woods @ 11/04/2002 08:07 PM. Doh! I rather stupidly forgot to run a key test case. I tried it when I got home only to find it failed. If you are creating a brand new story, the shortcut is initially incorrect. If you change the story and resave, the correct shortcut is created. It's a timing thing. The table user.radio.settings.files is being maintained in such a way that the url is not set until rendering is complete. I will try to resolve this tomorrow. In the meantime, everything works OK, you just don't... [YACCS Comments for On the Mark]On to iteration #6. I know what I need to do, but will not have time until this afternoon. My plan is to use the upstream callback, eliminating the need to make a template change. Watch this space. 9:01:38 AM Google It! |