Difference between revisions of "PT Calendar2 CCAPI Configuration"

From ADF Docs
Jump to: navigation, search
(Created page with 'Back to Build Subsites, Templates and Pages')
 
(Setup)
 
(One intermediate revision by one other user not shown)
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">
 +
<Calendar2>
 +
  <pageID>#####</pageID>
 +
  <subsiteID>##</subsiteID>
 +
  <elementType>custom</elementType>
 +
  <controlName>ccapiCalendarElement</controlName>
 +
</Calendar2>
 +
</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]]

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.