Do you have an Umbraco blog? post the URL here. Options
darrenjferguson
Posted: Thursday, July 03, 2008 4:13:17 PM

Rank: Fanatic

Joined: 3/19/2008
Posts: 219
Location: London, UK
Hello all - This is a duplicate of a blog post I have just made.

Keeping up with the Umbraco community can be quite exhausting.

I maintain an Umbrao pipe at http://pipes.yahoo.com/darren/umbraco

From this URL you can get an RSS, JSON or a number of other formats.

I'd like the pipe to to be as complete as possible. If you run an Umbraco related blog and you aren't listed in the pipe sources on the left of the screen please let me know so I can add your site (by replying to this topic).

This is potentially a very useful resource and can save several hours of browsing from site to site. It also beats having tens of feeds in your reader as posts on the pipe average 3-4 per day.

I'd also encourage any Umbraco blog owners to provide a comments RSS if possible. I often participate in comment discussions and have to revisit the site to check for updates. It'd be great to have them all in my reader. I looked at cocomment to address this, but in my opinion it is over complex and doesn't seem to work very well.

The XSLT I use to produce my comments RSS is as follows:

Code:
<?xml version="1.0" encoding="UTF-8"?>
<xsl:stylesheet
version="1.0"
xmlns:xsl="http://www.w3.org/1999/XSL/Transform"
xmlns:msxml="urn:schemas-microsoft-com:xslt"
xmlns:umbraco.library="urn:umbraco.library"
xmlns:dc="http://purl.org/dc/elements/1.1/"
xmlns:content="http://purl.org/rss/1.0/modules/content/"
exclude-result-prefixes="msxml umbraco.library">
   
   
    <xsl:output method="xml" omit-xml-declaration="yes"/>
   
    <xsl:param name="currentPage"/>
   
    <xsl:variable name="howMany">
        20
    </xsl:variable>
    <xsl:variable name="posts" select="$currentPage/descendant-or-self::node [@nodeTypeAlias='umbracoBlogComment']"/>
    <xsl:variable name="total" select="count($posts)"/>
    <xsl:variable name="pubDate">
        <xsl:for-each select="$currentPage/descendant::node [@nodeTypeAlias='umbracoBlogComment']">
            <xsl:sort select="@createDate" data-type="text" order="descending"/>
            <xsl:if test="position() = 1">
                <xsl:value-of select="@createDate"/>
            </xsl:if>
        </xsl:for-each>
    </xsl:variable>
   
    <xsl:template match="/">
        <rss version="2.0">
            <channel>
                <title>
                    Darren Ferguson - Blog comments
                </title>
                <link>
                    http://www.darren-ferguson.com/?altTemplate=CommentRSS
                </link>
                <pubDate>
                    <xsl:value-of select="$pubDate"/>
                </pubDate>
                <generator>
                    umbraco 3.0.5
                </generator>
                <language>
                    en
                </language>
               
                <xsl:apply-templates select="$currentPage/descendant-or-self::node [@nodeTypeAlias='umbracoBlogComment']">
                    <xsl:sort select="@createDate" order="descending"/>
                </xsl:apply-templates>
            </channel>
        </rss>
       
       
    </xsl:template>
   
    <xsl:template match="node">
       
        <xsl:if test="position() &lt;= $howMany">
            <item>
                <title>
                    <xsl:value-of select="@nodeName"/>
                </title>
                <link>
                    http://www.darren-ferguson.com/<xsl:value-of select="@id"/>.aspx
                </link>
                <pubDate>
                    <xsl:value-of select="@createDate"/>
                </pubDate>
                <dc:creator>
                    <xsl:value-of select="./data [@alias='name']"/>
                </dc:creator>
                <guid>
                    http://www.darren-ferguson.com/<xsl:value-of select="@id"/>.aspx
                </guid>
                <content:encoded>
                    <xsl:value-of select="concat('&lt;![CDATA[ ', ./data [@alias='comment'],']]&gt;')" disable-output-escaping="yes"/>
                </content:encoded>
            </item>
        </xsl:if>
    </xsl:template>
   
</xsl:stylesheet>






Darren Ferguson - Umbraco level 2 certified
www.darren-ferguson.com - www.fergusonmoriyama.com
warren
Posted: Thursday, July 03, 2008 4:34:52 PM

Rank: Addict

Joined: 7/19/2006
Posts: 777
Location: Leigh-on-Sea, Essex, UK
Users browsing this topic
Guest


You cannot post new topics in this forum.
You cannot reply to topics in this forum.
You cannot delete your posts in this forum.
You cannot edit your posts in this forum.
You cannot create polls in this forum.
You cannot vote in polls in this forum.