application.ptCalendar.scripts.loadJQuery(); // these may or may not be indirectly loaded by scripts this calls, so if we're detecting resources, ONLY, load them now // if we're not detecting resources, the scripts themselves will do it application.ptCalendar.scripts.loadJQueryUI(themeName=application.ptCalendar.getUItheme()); application.ptCalendar.scripts.loadQTip(); application.ptCalendar.scripts.loadJQueryImagesLoaded(); application.ptCalendar.scripts.loadADFLightbox(); application.ptCalendar.scripts.loadFontAwesome(); // This script MUST remain dynamic since the data and the generated HTML is modified with a URL parameters request.element.isStatic = 0; request.element.hasData = 1; // Get the Configuration and Page Map Values appConfig = application.ptCalendar.getAppConfig(); // Set the Event Cache status from the configuration element useEventsCache = application.ptCalendar.getEventCacheStatus(); // Get the items from the Display Properties Custom Element items = attributes.elementInfo.elementData.propertyValues; linkedCalendarPage = ""; linkedCalendarSubsite = ""; if ( ArrayLen(items) AND StructKeyExists(items[1],"values") ) { if ( StructKeyExists(items[1].values,"linkedCalendarPage") ) linkedCalendarPage = application.ptCalendar.csData.parseCSURL(str=items[1].values.linkedCalendarPage); if ( StructKeyExists(items[1].values,"linkedCalendarSubsite") ) linkedCalendarSubsite = items[1].values.linkedCalendarSubsite; } /* ** ptCalendar getRenderEventsData SETTINGS *** */ // -- THESE MUST ME INCLUDED AT THE TOP OF THE ptCalendar GRID/LIST RenderHandlers (before getRenderEventData) // - ptCalendar Date Range designation viewRangeType = "Month"; // (Month/Week/Day) viewDisplayType = "Small"; // (Small/Grid/List)) // - ptCalendar EventsCache designation (generally this will be true. May need to set to false for debugging) // useEventsCache = false; // (true/false) - Use this as an override for the Global setting that is managed via the Configuration element /* ** getRenderEventsData SETTINGS *** */ // ptCalendar date and data processing the calendar renderhandler return as CF query object // -- THIS MUST BE INCLUDED AT THE TOP OF THE ptCalendar GRID/LIST RenderHandlers (after the getRenderEventData Settings) eventData = application.ptCalendar.calRenderController.getRenderEventData( displayPropsArray=items ,viewRangeType=viewRangeType ,useEventsCache=useEventsCache ); #application.ptCalendar.calRenderController.createCalendar( rangeType=viewRangeType ,displayType=viewDisplayType ,calendarData=eventData ,eventField="eventDate" ,curYear=request.ptCalendar.thisYear ,curMonth=request.ptCalendar.thisMonth ,curDay=request.ptCalendar.thisDay ,linkedPage = linkedCalendarPage ,linkedSubsite = linkedCalendarSubsite )#