I'm creating an RSS feed for my Umbraco site but I'm having a problem here. I have several Doc Types, but Iwant only 3 of them to show up in the RSS Feeds, all the rest should be ignored. How can I achieve that? Here's the code I have right now:
try filtering your DocTypes before applying the template like this:
<xsl:apply-templatesselect="$rootTextpageNode//node [string(data [@alias='umbracoNaviHide']) != '1' and (@nodeTypeAlias='YOURDOCTYPE1' or @nodeTypeAlias='YOURDOCTYPE2' or @nodeTypeAlias='YOURDOCTYPE3') ]">
I moved my project to a staging environment and my RSS Feeds stopped working. The generated XML is different for the same XSLT. Here's what I get when I view the source of the feed:
RSS Feeds
Hello,
I'm creating an RSS feed for my Umbraco site but I'm having a problem here. I have several Doc Types, but Iwant only 3 of them to show up in the RSS Feeds, all the rest should be ignored. How can I achieve that? Here's the code I have right now:
Thanks in advance.
Hi,
try filtering your DocTypes before applying the template like this:
think this should work for you
Toby
I've got another question..
I moved my project to a staging environment and my RSS Feeds stopped working. The generated XML is different for the same XSLT. Here's what I get when I view the source of the feed:
Local:
Stage:
What's my problem here? Can't figure this one out..
Thanks.
Correction: the feeds didn't stop working, but they aren't well formed. The content's there.
is working on a reply...