Take next 5 items from Calendar to create list of events
Take next 5 items from Calendar to create list of events
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
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:
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....
}