Difference between revisions of "PT Calendar2 CCAPI Configuration"

From ADF Docs
Jump to: navigation, search
(Setup)
 
Line 16: Line 16:
  
 
<source lang="xml">
 
<source lang="xml">
<Calendar>
+
<Calendar2>
 
   <pageID>#####</pageID>
 
   <pageID>#####</pageID>
 
   <subsiteID>##</subsiteID>
 
   <subsiteID>##</subsiteID>
 
   <elementType>custom</elementType>
 
   <elementType>custom</elementType>
 
   <controlName>ccapiCalendarElement</controlName>
 
   <controlName>ccapiCalendarElement</controlName>
</Calendar>
+
</Calendar2>
 
</source>
 
</source>
  

Latest revision as of 23:59, 22 July 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

  1. Create a new page called 'ccapiCalendar'. Recommend creating this page in the /webadmin/calendar/ subsite.
  2. Add the 'Calendar' element to the page.
  3. Select the 'Calendar' element indicator and go to 'more...'. Select 'Name' from the menu.
  4. In the Element Name field, enter the text 'ccapiCalendarElement'.
  5. Publish this page and put in read mode.
  6. Edit the 'ccapi.cfm' file for the site and add the following xml blocks into the <elements> section:
    1. an example 'ccapi.cfm' file is in the pt_calendar > site-files > _cs_apps > config folder
<Calendar2>
  <pageID>#####</pageID>
  <subsiteID>##</subsiteID>
  <elementType>custom</elementType>
  <controlName>ccapiCalendarElement</controlName>
</Calendar2>

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.