Design and CSS styles
Version 5.x > Design and CSS styles > Calendar: headline style list of events? View modes: 
User avatar
Member
Member
Kit-Webtech - 3/3/2011 2:23:56 PM
   
Calendar: headline style list of events?
I need to run a short list of the next 4 events on our website.

Here is what I am talking about:

Mar 8: Event that takes place
Apr 10: Another event that happens
May 9: this is happening
May 10: another thing happening

How can I pull that info from the standard events calendar?

User avatar
Kentico Developer
Kentico Developer
kentico_ivanat - 3/8/2011 4:02:05 AM
   
RE:Calendar: headline style list of events?
Hi,

to list next 4 events you could use a repeater webpart for example (you can find an inspiration on default Corporate site - Events document).

What you need to set up in properties of repeater webpart is:
Path: /where_events_are_located/%
Document types: CMS.Event (in case you would like to work with standard events)
Select top N documents: 4 (select only 4 events)
WHERE condition: eventdate > getdate() (select nearest 4 events)

Best regards,
Ivana Tomanickova