Page 1 of 1

Take next 5 items from Calendar to create list of events

Posted: Fri Jan 16, 2009 11:35 pm
by Eloni
I don't have version numbers yet because I am just getting into CMSMS.  Calendaring seems simple, but I want to dynamically take the next 5 events from the calendar, and create a list of events on the homepage.  Does a module exist to do this, or will I need to write one myself?  Cheers!

Re: Take next 5 items from Calendar to create list of events

Posted: Wed Jan 21, 2009 9:53 am
by irish
I don't know this module, but it sounds like you would just need to write a small piece of code on the action.default.php page, and then pass a parameter to activate it.

Home Page:
i.e. {cms_module module="CalendarMadeSimple" show="next5"}

action.default.php page:

Code: Select all

if(isset($params["show"]) && $params["show"]=='next5'){
   code here to display next five....
}