Sorry if this question has been asked before; when i search the forum, i didnt find anything that helped.
I have already implemented an RSS feed to iterate over a number of pages in my site, and generate a feed based on page data, which seems to work fine.
I now need to add two more feeds; one that filters the projects by Tag, and on the filters by Title. I would like to enable users to specify the filter criteria in the URL. For instance, i would like to have the tag-filter rss page accessed by the following URL...
...and then in the RSS xslt, access the tag parameter string so that i can discover the string to filter by. I can then iterate through the pages and pull the data for related pages into the RSS. This bit i know how to do; it's accessing the parameter content that has me really stumped.
Is this possible to do, and if so, would anyone be able to point out an article i can use to figure out how to do this. I'm completely stumped on this at the moment, and am spinning in circles not getting anywhere...
<!-- Update these variables to modify the feed --> <xsl:variable name="RSSNoItems" select="string('10')"/> <xsl:variable name="RSSTitle" select="$currentPage/data [@alias = 'blogName']"/> <xsl:variable name="SiteURL" select="string('http://www.geckonewmedia.com')"/> <xsl:variable name="RSSDescription" select="$currentPage/data [@alias = 'blogDescription']"/>
<!-- This gets all news and events and orders by updateDate to use for the pubDate in RSS feed --> <xsl:variable name="pubDate"> <xsl:for-each select="$currentPage//node [@alias = 'BlogPost']"> <xsl:sort select="@createDate" data-type="text" order="descending" /> <xsl:if test="position() = 1"> <xsl:value-of select="updateDate" /> </xsl:if> </xsl:for-each> </xsl:variable>
<xsl:template match="/"> <!-- change the mimetype for the current page to xml --> <xsl:value-of select="umbraco.library:ChangeContentType('text/xml')"/>
Help with RSS, xslt, and aspx parameters
Hi all,
Sorry if this question has been asked before; when i search the forum, i didnt find anything that helped.
I have already implemented an RSS feed to iterate over a number of pages in my site, and generate a feed based on page data, which seems to work fine.
I now need to add two more feeds; one that filters the projects by Tag, and on the filters by Title. I would like to enable users to specify the filter criteria in the URL. For instance, i would like to have the tag-filter rss page accessed by the following URL...
http://<serverName>/projects/rss.aspx?tag=<tagName>,
...and then in the RSS xslt, access the tag parameter string so that i can discover the string to filter by. I can then iterate through the pages and pull the data for related pages into the RSS. This bit i know how to do; it's accessing the parameter content that has me really stumped.
Is this possible to do, and if so, would anyone be able to point out an article i can use to figure out how to do this. I'm completely stumped on this at the moment, and am spinning in circles not getting anywhere...
Thanks in advance to anyone that can help.
It's possible, and here is the xslt that we use for exactly that. Post back if you'd like any particular part of it explained
examples: http://www.geckonewmedia.com/blog/rss?filterby=umbraco and http://www.geckonewmedia.com/blog/rss?filterby=jquery
Hope this helps,
Dan
is working on a reply...