Difference between revisions of "PT Calendar2 CCAPI Configuration"
Gcronkright (talk | contribs) (Created page with 'Back to Build Subsites, Templates and Pages') |
Gcronkright (talk | contribs) |
||
Line 1: | Line 1: | ||
Back to [[PT Calendar2 Build Subsites Templates and Pages|Build Subsites, Templates and Pages]] | Back to [[PT Calendar2 Build Subsites Templates and Pages|Build Subsites, Templates and Pages]] | ||
+ | |||
+ | == Overview == | ||
+ | The Calendar Application uses the [[CCAPI|ADF CCAPI]] to populate calendar element records with copies of reoccurring events. The CCAPI needs to be configured to handle "Copy Event" functionality. | ||
+ | |||
+ | First, follow the steps to set up the [[CCAPI Config|CCAPI Config]] file for the site. Once that configuration is complete, follow the steps below to set up the CCAPI config for the Photo Gallery application. Make sure to update the ''wsVars'' section with the correct URLs and username/password. | ||
+ | |||
+ | == Setup == | ||
+ | # Create a new page called 'ccapiCalendar'. Recommend creating this page in the ''/webadmin/calendar/'' subsite. | ||
+ | # Add the 'Calendar' element to the page. | ||
+ | # Select the 'Calendar' element indicator and go to 'more...'. Select 'Name' from the menu. | ||
+ | # In the Element Name field, enter the text 'ccapiCalendarElement'. | ||
+ | # Publish this page and put in read mode. | ||
+ | # Edit the 'ccapi.cfm' file for the site and add the following xml blocks into the <elements> section: | ||
+ | ## an example 'ccapi.cfm' file is in the '''pt_calendar > site-files > _cs_apps > config''' folder | ||
+ | |||
+ | <source lang="xml"> | ||
+ | <Calendar> | ||
+ | <pageID>#####</pageID> | ||
+ | <subsiteID>##</subsiteID> | ||
+ | <elementType>custom</elementType> | ||
+ | <controlName>ccapiCalendarElement</controlName> | ||
+ | </Calendar> | ||
+ | </source> | ||
+ | |||
+ | To populate the <pageID> and <subsiteID> tags, view the 'source' code for the 'ccapiCalendar' page that was just created. | ||
+ | |||
+ | Identify the following line in the source code and enter this numeric value into the <subsiteID> tag: | ||
+ | <source lang="java"> | ||
+ | var jsSubSiteID = ##; | ||
+ | </source> | ||
+ | |||
+ | Identify the following line in the source code and enter this numeric value into the <pageID> tag: | ||
+ | <source lang="java"> | ||
+ | var jsPageID = ####; | ||
+ | </source> | ||
+ | |||
+ | [[Reset ADF|Reset the ADF]] for the server and site. | ||
+ | |||
+ | [[Category:Calendar]] |
Revision as of 20:02, 22 April 2010
Back to Build Subsites, Templates and Pages
Overview
The Calendar Application uses the ADF CCAPI to populate calendar element records with copies of reoccurring events. The CCAPI needs to be configured to handle "Copy Event" functionality.
First, follow the steps to set up the CCAPI Config file for the site. Once that configuration is complete, follow the steps below to set up the CCAPI config for the Photo Gallery application. Make sure to update the wsVars section with the correct URLs and username/password.
Setup
- Create a new page called 'ccapiCalendar'. Recommend creating this page in the /webadmin/calendar/ subsite.
- Add the 'Calendar' element to the page.
- Select the 'Calendar' element indicator and go to 'more...'. Select 'Name' from the menu.
- In the Element Name field, enter the text 'ccapiCalendarElement'.
- Publish this page and put in read mode.
- Edit the 'ccapi.cfm' file for the site and add the following xml blocks into the <elements> section:
- an example 'ccapi.cfm' file is in the pt_calendar > site-files > _cs_apps > config folder
<Calendar>
<pageID>#####</pageID>
<subsiteID>##</subsiteID>
<elementType>custom</elementType>
<controlName>ccapiCalendarElement</controlName>
</Calendar>
To populate the <pageID> and <subsiteID> tags, view the 'source' code for the 'ccapiCalendar' page that was just created.
Identify the following line in the source code and enter this numeric value into the <subsiteID> tag:
var jsSubSiteID = ##;
Identify the following line in the source code and enter this numeric value into the <pageID> tag:
var jsPageID = ####;
Reset the ADF for the server and site.