Jake Savin: Jake's Radio MacrosMacros you can use in Radio UserLand posts and templatesRelated according to the Google API- (Found June 18, 2008 ) Doc Searls, Sam Ruby, and Jonathan Peterson are all pointing at Dave Sifry's Google API hack for Moveable Type. Sifry writes: "Look down at the bottom of this blog entry. You'll see a line that starts, 'Related Stories:' followed by 10 links. These links are created by a google search on the words in the title of this blog entry." It turns out that this is pretty easy to do in Radio as well. As a test, I created a macro called googleTitleSearch, which you can drop in your Macros folder. With..http://radio.weblogs.com/0001000/categories/macros/2002/06/19.html#a633 Adding a date to your Radio archive pages- (Found June 18, 2008 ) Day 8 of Mark Pilgrim's "30 days to a more accessible weblog": Constructing meaningful page titles. Mark writes: "Every page of your weblog should have a unique and meaningful page title... Date-based archive pages should include the name of your weblog, followed by the date (or date range) for the page... "Unfortunately, I do not know how to customize page titles satisfactorily in Blogger or Radio. Radio has a &60;%longDate% macro, but it can not be used as part of the page title..." It's..http://radio.weblogs.com/0001000/categories/macros/2002/06/19.html#a630 (Untitled)- (Found June 18, 2008 ) Mikkel Bruun asked on the Radio UserLand discussion group how to get a 24-hour time-stamp on his weblog posts. Here's a macro for the item template, that returns a 24-hour time stamp. Use it in place of the <%when%> macro: <%local (d = weblogData.posts."<%paddedItemNum%>".when);local (day, month, year, hour, minute, second);date.get (d, day, month, year, hour, minute, second);hour = string.padWithZeros (hour, 2);minute = string.padWithZeros (minute, 2);second =...http://radio.weblogs.com/0001000/categories/macros/2002/05/28.html#a514 (Untitled)- (Found June 18, 2008 ) At Dave's request, I started a new category for documenting my ongoing Radio development work. It's rendered in HTML here, and you can subscribe to it by clicking this link.http://radio.weblogs.com/0001000/categories/macros/2002/02/01.html#a254 (Untitled)- (Found June 18, 2008 ) Here's a macro that lists all of your stories by title, with links to the stories. The list isn't sorted, but a somewhat adventuresome macro-writer should be able to figure out how to do that without much trouble. ";-" <% local (s = "", pc = file.getPathChar ()); local (folder); folder = user.radio.prefs.wwwFolder + "stories" + pc; fileloop (f in folder, infinity) if file.fileFromPath (f) == "index.txt" continue; local (adrfile = user.radio.settings.files.f); if defined (adrfile)..http://radio.weblogs.com/0001000/categories/macros/2002/01/14.html#a184 (Untitled)- (Found June 18, 2008 ) This is the first post to my Macros category! Here's a neat little trick for changing the date format in your Day template. I wanted my dates to show up in YYYY.MM.DD format, so I changed <%longDate% in my Day template to the following:<%local (d = date ("<%shortDate%"));local (month = string.padWithZeros (date.month (d), 2));local (day = string.padWithZeros (date.day (d), 2));return (date.year (d) + "." + month + "." + day)%http://radio.weblogs.com/0001000/categories/macros/2002/01/12.html#a173 |