aka: HOME -   - STRATEGY - project management - technology - design - tools - Blue Sky Radio - klogs - community - staffing - shortage watch -   - LIFE - events - food - Bloggers for Hire - shrub - public policy - books - Obituaries a la Blog
Click to see the XML version of this web page.
subscribe in Radio
Blue Sky Radio
Thinking about the next generation of Radio UserLand and Manila. Exercises in Distributed Product Management and Collective wish list fulfillment.


Friday, May 03, 2002 Go to this day's page

Blue Sky Radio  


Rick Klau:

"Add this to my Radio wish list: I'd like a way to indicate what categories have been added to a post. This would be an effective way of showing how I think a post should be categorized, and would also reinforce the notion that there are other ways to browse this site. The more I think about it, the more I think that Jenny's right on when it comes to meta-data: we need to figure out how to add useful meta-data to weblogs. "

I concur. I render category labels on my web site but they don't become part of the post included in the database or the rss feed.

A kind soul volunteered a cleaner version of the following macro for my Item template.

<%
local (adrblog = radio.weblog.init ());
local (adrposts = @adrblog^.posts);
local (postNum = "<%paddedItemNum%>" ) ;
local (adrpost = @adrposts^.[postNum]) ;
if (! defined (adrpost^.categories)) {
   return "";
};
local (adrcats = adrpost^.categories);
local (buf = "");
for adr in @adrcats {
   local (name = nameOf(adr^));
   local (adrcat= @adrblog^.categories.[name]);
   local (link = name);
   if (defined (adrcat) && defined (adrcat^.htmlUrl)) {
      if (adrcat^.htmlUrl != "") {
         link = "<a href=\"" + adrcat^.htmlUrl + "">" + name + "</a>";
      };
   };
   buf = buf + " " + link;
};

buf = "<small>" + buf + "</small>";
return  buf ;
%>

You can see examples of it on Blue Sky Radio.

Click here to send an email to the editor of this weblog. ( comments) # 337 5:58:00 PM G! DayPop!

 



Phil Wolff's
a klog apart
What's the next question?

Home

Click here to send an email to the editor of this weblog. AIM Y! @Ryze




 ?

Updated: 4/25/2003; 10:08:15 AM

Recent Posts


Previous post or Next

dijest rss Radio coffee mug
Phil's dijest


My Sources (600k)
My Neighborhood (700k)