Skip to content

Instantly share code, notes, and snippets.

@stevewithington
Created July 23, 2014 20:27
Show Gist options
  • Save stevewithington/d46b291b84a9e4f50bcb to your computer and use it in GitHub Desktop.
Save stevewithington/d46b291b84a9e4f50bcb to your computer and use it in GitHub Desktop.
Mura CMS : getMyEvents()
<cfscript>
public any function getMyEvents(calendarid=variables.$.content('contentid'), months=6) {
var local = {};
local.util = variables.$.getCalendarUtility();
local.rsItems = local.util.getCalendarItems(
calendarid=arguments.calendarid
, start=Now()
, end=DateAdd('m', arguments.months, Now())
);
return rsItems;
}
</cfscript>
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment