Press Ctrl / CMD + C to copy this to your clipboard.
This post will be reported to the moderators as potential spam to be looked at
Hi,
On the site I am currently developing I would like to show two random nodes in a sidebar, which could come from a selection of document types.
I was hoping to be able to just xsl:sort by random and limit to position() < 3, but no such luck!
How would I go about achieving this?
Thanks,Dave
Hi Probocop
I think you can solve your problem by following the instructions in this wiki entry: http://our.umbraco.org/wiki/reference/xslt/snippets/getting-a-series-of-unique-random-numbers
I'm not sure but something in my backhead is screaming that there is a "random" extension in the uComponents package...But I must admit that I'm not entirely sure. Suffering from bad memory here...:-)
/Jan
Hi Jan,
Thanks for your response, I did a quick Google and there is indeed a 'random' extension in uComponents! - http://ucomponents.codeplex.com/wikipage?title=Xml&version=4
Thanks for the help,
Dave
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.
Continue discussion
Displaying random content from multiple document types anywhere on the site?
Hi,
On the site I am currently developing I would like to show two random nodes in a sidebar, which could come from a selection of document types.
I was hoping to be able to just xsl:sort by random and limit to position() < 3, but no such luck!
How would I go about achieving this?
Thanks,
Dave
Hi Probocop
I think you can solve your problem by following the instructions in this wiki entry: http://our.umbraco.org/wiki/reference/xslt/snippets/getting-a-series-of-unique-random-numbers
I'm not sure but something in my backhead is screaming that there is a "random" extension in the uComponents package...But I must admit that I'm not entirely sure. Suffering from bad memory here...:-)
/Jan
Hi Jan,
Thanks for your response, I did a quick Google and there is indeed a 'random' extension in uComponents! - http://ucomponents.codeplex.com/wikipage?title=Xml&version=4
Thanks for the help,
Dave
is working on a reply...
This forum is in read-only mode while we transition to the new forum.
You can continue this topic on the new forum by tapping the "Continue discussion" link below.