PT Import Content CCAPI Configuration
Contents
Overview
The PT Import Content Application uses the ADF CCAPI to populate custom elements and text blocks, and create subsites and pages. The CCAPI needs to be configured for the site and PT Import Content application.
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 Import Content application. Make sure to update the wsVars section with the correct URLs and username/password.
Subsite Mapping
- Create a new page called 'ccapi'. Recommend creating this page in the root of the site.
- Add the 'Subsite Mapping' element to the page.
- Select the 'Subsite Mapping' element indicator and go to 'more...'. Select 'Name' from the menu.
- In the Element Name field, enter the text 'subsiteMapElement'.
- Publish this page and view in read mode.
- Edit the 'ccapi.cfm' file for the site and add the following xml block into the <elements> section:
<subsiteMap>
<pageID>#####</pageID>
<subsiteID>##</subsiteID>
<elementType>custom</elementType>
<controlName>subsiteMapElement</controlName>
</subsiteMap>
Page Mapping
- On the 'ccapi' page created, add the 'Page Mapping' element to the page.
- Select the 'Page Mapping' element indicator and go to 'more...'. Select 'Name' from the menu.
- In the Element Name field, enter the text 'pageMapElement'.
- Publish this page and view in read mode.
- Edit the 'ccapi.cfm' file for the site and add the following xml block into the <elements> section:
<pageMap>
<pageID>#####</pageID>
<subsiteID>##</subsiteID>
<elementType>custom</elementType>
<controlName>pageMapElement</controlName>
</pageMap>
Document Mapping
- On the 'ccapi' page created, add the 'Document Mapping' element to the page.
- Select the 'Document Mapping' element indicator and go to 'more...'. Select 'Name' from the menu.
- In the Element Name field, enter the text 'documentMapElement'.
- Publish this page and view in read mode.
- Edit the 'ccapi.cfm' file for the site and add the following xml block into the <elements> section:
<documentMap>
<pageID>#####</pageID>
<subsiteID>##</subsiteID>
<elementType>custom</elementType>
<controlName>documentMapElement</controlName>
</documentMap>
Image Mapping
- On the 'ccapi' page created, add the 'Image Mapping' element to the page.
- Select the 'Image Mapping' element indicator and go to 'more...'. Select 'Name' from the menu.
- In the Element Name field, enter the text 'imageMapElement'.
- Publish this page and view in read mode.
- Edit the 'ccapi.cfm' file for the site and add the following xml block into the <elements> section:
<imageMap>
<pageID>#####</pageID>
<subsiteID>##</subsiteID>
<elementType>custom</elementType>
<controlName>imageMapElement</controlName>
</imageMap>
Import Job
- On the 'ccapi' page created, add the 'Import Job' element to the page.
- Select the 'Import Job' element indicator and go to 'more...'. Select 'Name' from the menu.
- In the Element Name field, enter the text 'ccapiImportJob'.
- Publish this page and view in read mode.
- Edit the 'ccapi.cfm' file for the site and add the following xml block into the <elements> section:
<importJob>
<pageID>#####</pageID>
<subsiteID>##</subsiteID>
<elementType>custom</elementType>
<controlName>ccapiImportJob</controlName>
</importJob>
Page ID and Subsite ID
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.