Portal Engine Questions on portal engine and web parts.
Version 5.x > Portal Engine > Repeater - random start, but still in node order? View modes: 
User avatar
Member
Member
econ-yahoo - 11/24/2010 1:24:10 PM
   
Repeater - random start, but still in node order?
Is there a way to have the CMS repeater use NodeOrder but start randomly? Like start with 3 then go 4 5 6 1 2, and upon next refresh start with 6 and go 1 2 3 4 5

Thanks!

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 11/24/2010 4:33:52 PM
   
RE:Repeater - random start, but still in node order?
Hello,


You could create two repeaters for his purpose. You can save the random number globally (query string parameter or session parameter – please see the standard ASP.NET documentation for more details). Then you could use the same Order by: NodeOrder and different Where conditions. The first one could be: NodeOrder >= the_global_random_number and the second one: NodeOrder < the_global_random_number


Best regards,
Helena Grulichova