As Tom says the XML schema has changed in the newer versions of Umbraco. If you want to run through nodes with some diferent document types, you have to do like this:
<xsl:for-eachselect="$currentPage/*[@isDoc]">
And if you want to just run through nodes with a document type of "BlogPost", you must do like this:
Yeah, your code would work just as well as the other code. But there's no reason to write so much. The following two lines of code would run through the same nodes:
<xsl:for-eachselect="$currentPage/child::* [@isDoc and self::BlogPost]">
<xsl:for-eachselect="$currentPage/BlogPost">
It's up to you how you want to write your code, but it's always nice to write less code if possible, right ;)
RSS Feed nodes are not displayed
Hello,
I just created a rss feed like it is described in the video.
the xslt uses:
(like it is done in the video)
But no items are displayed. I only get a blank RSS site with the site name but without any items (news)
Can somebody help?
Thanks
Which version of Umbraco are you running?
The xml scheema has changed in 4.5.2 so you may need to use somthing like
If you want to iterate over blog post nodes for example.
Alternatively this might also work;
Have you got a link to that video handy? It might be referencing an older version of Umbraco?
Many Thanks,
Tom
Hi Dominik.
As Tom says the XML schema has changed in the newer versions of Umbraco. If you want to run through nodes with some diferent document types, you have to do like this:
And if you want to just run through nodes with a document type of "BlogPost", you must do like this:
/Kim A
Hi Dominik and others.
I just took a look at this post. And really thought I knew the answer as Kim has written in his post. There is something I wonder. Because the way I have asked for a specific document type in Umbraco.
Are as follows so I thought it would be
Maybe it's me who is wrong.
/Dennis
Hi Dennis!
Yeah, your code would work just as well as the other code. But there's no reason to write so much. The following two lines of code would run through the same nodes:
It's up to you how you want to write your code, but it's always nice to write less code if possible, right ;)
/Kim A
Hi Kim
Yeah you are right.
It's nice to write less code if possible ;)
But I did not know that it was possible to just write
So thanks Kim ! :)
/Dennis
No problem Dennis.
You can do this because of the way the new schema is structured. I looks something like this:
/Kim A
is working on a reply...