The Feed.Us "detail" page

The Feed.Us "detail" page is a little tricky to explain.

It's the way that Feed.Us can create dynamically generated "permalink" pages on your website.

It's where the "full story" will reside - the unique page for a specific article, calendar, etc.

Still confused? Look at this page (the one you're looking at). The title and teaser on the homepage links to a permanent full page that we generate dynamically.  When I write this page, I don't have to create the permalink location.

Here's how it works.

1. Create a PHP or ASP page called "detail.asp" (or detail.php). 

2. Where the Body of the article would go, you place the following code:

ASP:

<%
                If (request("c") <> "") Then
                    FeedUsURL = "http://feed.us/render.aspx?xp=2&id=" &request("c") &"&cs=&xs=Default-Title_Body&l=loginname&a=00000000-0000-0000-0000-000000000000"
                else
                    FeedUsURL = ""%>
                    No content specified.
                <%end if%>
                <!--#include file ="FeedUsGrabber.asp"-->

PHP:

 

3. See that "Default-Title_Body" in the URL?  That refers to an XSL on Feed.Us.  You can use any XSL and display any fields in Feed.Us and use specific CSS div tags.

4. "loginname" in the URL is your Feed.Us username.

5. You can add great web services like javascript-based comment systems and sharing services on this detail page.  Just add the javascripts below the Feed.Us code.

6. With PHP, you can do a URL rewrite (like ISAPI rewrite on ASP), and include the page's title out of Feed.us into your URL.

The Detail Page is one of the great features of Feed.Us because it makes a complex problem incredibly simple.  You could actually make two files, a default (index) and a detail page and then use feed.us to create your navigation and all the rest of the pages of a site.