Portal Engine Questions on portal engine and web parts.
Version 7.x > Portal Engine > Random Documents View modes: 
User avatar
Certified Developer 12
Certified Developer 12
chetan2309-gmail - 8/5/2013 7:44:16 AM
   
Random Documents
I came across this web part "Random Document". It worked fine for one of my requirements. However, now what I want it to select some n rows of n categories.

For example if I have 13 Species, I want it to return 13 rows, 1 of each specie. Can I somehow get this?

ANy alternative way to write this?

I wrote some query. However, though it is returning 1 doc of each specie, but it is returning same set of docs everytime

Any help!!

Regards,
Chetan

User avatar
Kentico Legend
Kentico Legend
Brenden Kehren - 8/5/2013 10:06:18 AM
   
RE:Random Documents
Set the caching to 0 in the webpart. Should get you a "fresh" random dataset each time.

User avatar
Certified Developer 12
Certified Developer 12
chetan2309-gmail - 8/5/2013 10:16:35 AM
   
RE:Random Documents
I did the same thing. It worked. Will it affect performance if I set caching to ?

User avatar
Member
Member
kentico_sandroj - 8/5/2013 8:08:05 PM
   
RE:Random Documents
There shouldn't be a big impact on performance but you can use our debugging tools to determine how much of a difference it makes.

Regards,
Sandro