Jake's Cool Macros : Jake's own crazy-cool macros!
Updated: 5/21/02; 2:35:10 PM.

 


Radio Stuff

Themes

Click to see the XML version of this web page.

 
 

Monday, January 14, 2002

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^) and (adrfile^.upstream.url != "") {
      s = s + "<a href=\"" + adrfile^.upstream.url + "\">";
      s = s + adrfile^.title;
      s = s + "</a>";
      s = s + " (" + date.shortString (adrfile^.postTime) + ")";
      };
   };
return (s)
%>

10:58:10 AM    


© Copyright 2002 Jake Savin.



Click here to visit the Radio UserLand website.

 


January 2002
Sun Mon Tue Wed Thu Fri Sat
    1 2 3 4 5
6 7 8 9 10 11 12
13 14 15 16 17 18 19
20 21 22 23 24 25 26
27 28 29 30 31    
Dec   Feb