appConfig = application.ptCalendar.getAppConfig();
useLightBoxForm = false; //TODO: Add option to use lightbox events form
addNewEventLink = "";
if( structKeyExists(appConfig, "new_event_url") and len(appConfig.new_event_url) )
addNewEventLink = appConfig.new_event_url;
// Convert CSExtURL to page url
addNewEventLink = Application.ADF.csData.parseCSURL(str=addNewEventLink,useLogging=true);
// Set the text for the button to Add New.
if ( StructKeyExists(attributes,"buttonText") AND LEN(TRIM(attributes.buttonText)) )
addButtonTitle = attributes.buttonText;
else
addButtonTitle = "Event Request Form";