Difference between revisions of "PT Sync CCAPI Configuration"
(Created page with '== Overview == The PT Sync Application uses the ADF CCAPI to populate custom element records on the destination site. The CCAPI needs to be configured for the source a…') |
|||
Line 3: | Line 3: | ||
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 PT Sync application. Make sure to update the ''wsVars'' section with the correct URLs and username/password. | 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 PT Sync application. Make sure to update the ''wsVars'' section with the correct URLs and username/password. | ||
+ | |||
+ | '''Configure the CCAPI for the custom elements on the destination site.''' The following steps configure the Sync Test custom element as an example. | ||
== Setup == | == Setup == | ||
− | # Create a new page called 'ccapi'. Recommend creating this page in the root subsite. | + | # Create a new page called 'ccapi'. Recommend creating this page in the root subsite. This page may already exist if you have installed other ADF apps. |
− | # Add the ' | + | # Add the 'Sync Test' element to the page. |
− | # Select the ' | + | # Select the 'Sync Test' element indicator and go to 'more...'. Select 'Name' from the menu. |
− | # In the Element Name field, enter the text ' | + | # In the Element Name field, enter the text 'ccapiSyncTest'. |
# Publish this page and view in read mode. | # Publish this page and view in read mode. | ||
# Edit the 'ccapi.xml' file for the site and add the following xml block into the <elements> section: | # Edit the 'ccapi.xml' file for the site and add the following xml block into the <elements> section: | ||
<source lang="xml"> | <source lang="xml"> | ||
− | < | + | <Sync-Test> |
− | <pageID> | + | <pageID>1000</pageID> |
− | <subsiteID> | + | <subsiteID>1</subsiteID> |
<elementType>custom</elementType> | <elementType>custom</elementType> | ||
− | <controlName> | + | <controlName>ccapiSyncTest</controlName> |
− | </ | + | </Sync-Test> |
</source> | </source> | ||
+ | # '''The tag name must match the custom element name with replacing spaces with hyphens.''' In this example, the custom element name is "Sync Test", therefore the tag name will be "Sync-Test". | ||
− | To populate the <pageID> and <subsiteID> tags, view the source code for the ' | + | To populate the <pageID> and <subsiteID> tags, view the source code for the 'ccapi' page that was just created. |
Identify the following line in the source code and enter this numeric value into the <subsiteID> tag: | Identify the following line in the source code and enter this numeric value into the <subsiteID> tag: | ||
Line 34: | Line 37: | ||
[[Reset ADF|Reset the ADF]] for the server and site. | [[Reset ADF|Reset the ADF]] for the server and site. | ||
− | [[Category: | + | [[Category:PT Sync]] |
Revision as of 14:16, 21 August 2011
Overview
The PT Sync Application uses the ADF CCAPI to populate custom element records on the destination site. The CCAPI needs to be configured for the source and destination site.
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 PT Sync application. Make sure to update the wsVars section with the correct URLs and username/password.
Configure the CCAPI for the custom elements on the destination site. The following steps configure the Sync Test custom element as an example.
Setup
- Create a new page called 'ccapi'. Recommend creating this page in the root subsite. This page may already exist if you have installed other ADF apps.
- Add the 'Sync Test' element to the page.
- Select the 'Sync Test' element indicator and go to 'more...'. Select 'Name' from the menu.
- In the Element Name field, enter the text 'ccapiSyncTest'.
- Publish this page and view in read mode.
- Edit the 'ccapi.xml' file for the site and add the following xml block into the <elements> section:
<Sync-Test>
<pageID>1000</pageID>
<subsiteID>1</subsiteID>
<elementType>custom</elementType>
<controlName>ccapiSyncTest</controlName>
</Sync-Test>
- The tag name must match the custom element name with replacing spaces with hyphens. In this example, the custom element name is "Sync Test", therefore the tag name will be "Sync-Test".
To populate the <pageID> and <subsiteID> tags, view the source code for the 'ccapi' 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.