ASPX templates
Version 5.x > ASPX templates > Random document webpart View modes: 
User avatar
Member
Member
davef-helixpoint - 6/4/2010 2:21:54 PM
   
Random document webpart
How do I use this. Is there an example anywhere?

User avatar
Kentico Developer
Kentico Developer
kentico_martind - 6/6/2010 2:02:04 PM
   
RE:Random document webpart
Hello,

Basically it works the same way like standard CMSRepeater web part, but you can specify number of documents to be displayed and there will be displayed random documents of this number. You can find more details at http://devnet.kentico.com/docs/webparts/KenticoCMS_WebParts.htm#_0ed1c8d0-d5da-4941-b021-5f15ad1e1c73. You can find this web part on /Examples/Webparts/Listings and viewers/Random document page on sample Corporate Site.

Best Regards,

Martin Dobsicek

User avatar
Member
Member
Ren - 9/19/2012 11:20:32 PM
   
RE:Random document webpart
I have been having some problems with this webpart - once I start with it (and I use it in several pages of the same site), it shows the same image.

(I am using Internet Explorer 8)

How should I set caching for it to work in a way that each page shows a different random image?

Thanks

User avatar
Kentico Developer
Kentico Developer
kentico_helenag - 9/20/2012 2:17:59 AM
   
RE:Random document webpart
Hello,


you need to disable all cache for this web part/page. Please check the partial cache in the web part properties and full page cache in document Properties.

Does it help? What version of Kentico CMS do you use exactly?

Does it happen in all browsers?


Best regards,
Helena Grulichova

User avatar
Member
Member
Dan - 9/26/2012 9:54:55 AM
   
RE:Random document webpart
I managed to fix the problem by setting the following in the Webpart Properties window:

Cache > Cache minutes to 0.

and the Partial Caching equivalent left blank (it defaults to 0 whereas the caching defaults to a global system setting)