CDB cat dog-egories:
      

October 25, 2003

Note: CogDogBlog has a new WordPress powered home at http://cogdogblog.com/. All entries from this version have been moved there, so as a guide dog service try finding this article in its new home by title search.

Syndicating "Best of Show"

I've took a little twist on RSS to deploy it in another fashion here at CDB. This was partly to response to a post by James Farmer as he tried to find an alternative approach to blogrolling.

Maybe not understanding Radio as much as I should, I commented that it might be feasible to create his own RSS feed his blog could subscribe to. Not being able to clearly explain it in text, I decided to code an example on my blog.

Here is what I did- on my right side "links" i have a section called "Best of Show" where L list the title and link to my recent presentations. Until now, what I did was to edit my template every time there was a new one (and there were four this month).

I thought I could just create my own RSS feed for this content, display say the 5 most recent on the front page, and display them all on an individual page.

Now I can update both by editing my RSS feed. Simplifies my life! Here is what it took to pull this off in MovableType and the MT-RSS Feed plugin:

First I had to set up a feed, using the Webreference tool described in Writing RSS 1-2-3. You can find this feed at:

http://cogdogblog.com/alan/show.rss

Where I used a format of:
Title contains both the presentation title and the date in parentheses.
Link URL for the online version of the show
Description - the abstract.

On my front page, I use this code:

<MTRSSFeed file="http://cogdogblog.com/alan/show.rss">
<MTRSSFeedItems lastn="5">
&raquo; <a href="<$MTRSSFeedItemLink$>"><$MTRSSFeedItemTitle$></a><br />
</MTRSSFeedItems>
/MTRSSFeed>

<div align="center"><a href="show.html"><em>all best of show</em></a></div>

which gives me the titles and links for the 5 most recent items on the front page of the blog, along with a link to the page with the full list.

On my Full listing page template (create a new index template in MovableType that saves as "show.html"), my template uses:


<MTRSSFeed file="http://cogdogblog.com/alan/show.rss">

<h2 class="date"><$MTRSSFeedTitle$></h2>

<MTRSSFeedItems>

<div class="blogbody">
<h3 class="title"><$MTRSSFeedItemTitle$></h3>
<p><$MTRSSFeedItemDescription$><br />

<span class="posted"><a href="<$MTRSSFeedItemLink$>"><$MTRSSFeedItemLink$></a></span></p>
</div>

</MTRSSFeedItems>
</MTRSSFeed>

Nad that is all- now I just hand-edit my RSS feed, pop it to the server, and rebuild index templates. Dynamic.

blogged October 25, 2003 04:47 AM :: category [ rss , using mt ]
Comments About "Syndicating "Best of Show""
RSS Feed for comments on this entry
RSS Feed for all CDB comments
 

Funky, highly funky... good use of RSS to simplify everything, I like it, a lot!

Commented by: James Farmer on October 25, 2003 10:12 PM

Spammers Have Force Our Hands...
spamroach.jpg
Note: Those nasty blog-spamming roaches have forced us to take action to prevent their spread- all entries made to this blog will remain open for comments for 30 days after the original posting date. After that, it is old news anyhow, correct?

If you really need to make contact with the chief dog around here, please submit a request via our feedback center