I feel powerful and good. I have implemented my first Radio UserLand tool. It's very simple, but it's been very instructive, and hey, I like it. It's not 100% yet, I'd call it a beta (I left the version label at 0.1), but I'm anxious to see how it works for other people.
It's called CurrentBook. Drop CurrentBook.root into your {radio_root}/tools directory and restart Radio. Then go to your Tools; you should see "CurrentBook" in the list. Click on the name (or click here) and the tool panel appears.
The default book is Radio Days (never read it, I picked it for the title), but you set it to whatever you like. I use Amazon's links and images, use whatever you like.
When you're done, add the following somewhere to your homepage template: <%CurrentBookSuite.myCurrentBook()%> And you'll get your image, link, and name, not unlike what appears on the right side of this weblog.
Even though it's simple, I'm sure there's a bug somewhere. Like Dave says, I make shitty software. Also, I hope in the future to allow you to build a stack of books you've read that your users can browse, just to play a bit more with the object database concept.
Now, a question for the people who know what they're doing when it comes to UserTalk and scripting Radio: Did I do it right? Is there a way to do it without building a tool? Should I have wrapped the call to CurrentBookSuite.myCurrentBook() in a more appropriately named macro?
Input requested. Let me know how it works out for you.
7:40:21 PM
|