Difference between revisions of "PT Import Content CCAPI Configuration"
(Created page with '== 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 c…') |
|||
Line 2: | Line 2: | ||
The PT Import Content Application uses the [[CCAPI|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. | The PT Import Content Application uses the [[CCAPI|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|CCAPI Config]] file for the site. Once that configuration is complete, follow the steps below to set up the CCAPI config for the | + | 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 Import Content application. Make sure to update the ''wsVars'' section with the correct URLs and username/password. |
− | == | + | == Subsite Mapping == |
− | # Create a new page called ' | + | # Create a new page called 'ccapi'. Recommend creating this page in the root of the site. |
− | # Add the ' | + | # Add the 'Subsite Mapping' element to the page. |
− | # Select the ' | + | # Select the 'Subsite Mapping' 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 'subsiteMapElement'. |
# Publish this page and view in read mode. | # Publish this page and view in read mode. | ||
− | # Edit the 'ccapi. | + | # Edit the 'ccapi.cfm' file for the site and add the following xml block into the <elements> section: |
<source lang="xml"> | <source lang="xml"> | ||
− | < | + | <subsiteMap> |
<pageID>#####</pageID> | <pageID>#####</pageID> | ||
<subsiteID>##</subsiteID> | <subsiteID>##</subsiteID> | ||
<elementType>custom</elementType> | <elementType>custom</elementType> | ||
− | <controlName> | + | <controlName>subsiteMapElement</controlName> |
− | </ | + | </subsiteMap> |
</source> | </source> | ||
− | To populate the <pageID> and <subsiteID> tags, view the source code for the ' | + | == 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: | ||
+ | <source lang="xml"> | ||
+ | <pageMap> | ||
+ | <pageID>#####</pageID> | ||
+ | <subsiteID>##</subsiteID> | ||
+ | <elementType>custom</elementType> | ||
+ | <controlName>pageMapElement</controlName> | ||
+ | </pageMap> | ||
+ | </source> | ||
+ | |||
+ | == 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: | ||
+ | <source lang="xml"> | ||
+ | <documentMap> | ||
+ | <pageID>#####</pageID> | ||
+ | <subsiteID>##</subsiteID> | ||
+ | <elementType>custom</elementType> | ||
+ | <controlName>documentMapElement</controlName> | ||
+ | </documentMap> | ||
+ | </source> | ||
+ | |||
+ | == 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: | ||
+ | <source lang="xml"> | ||
+ | <imageMap> | ||
+ | <pageID>#####</pageID> | ||
+ | <subsiteID>##</subsiteID> | ||
+ | <elementType>custom</elementType> | ||
+ | <controlName>imageMapElement</controlName> | ||
+ | </imageMap> | ||
+ | </source> | ||
+ | |||
+ | == 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: | ||
+ | <source lang="xml"> | ||
+ | <imageMap> | ||
+ | <pageID>#####</pageID> | ||
+ | <subsiteID>##</subsiteID> | ||
+ | <elementType>custom</elementType> | ||
+ | <controlName>imageMapElement</controlName> | ||
+ | </imageMap> | ||
+ | </source> | ||
+ | |||
+ | == 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: | ||
+ | <source lang="xml"> | ||
+ | <importJob> | ||
+ | <pageID>#####</pageID> | ||
+ | <subsiteID>##</subsiteID> | ||
+ | <elementType>custom</elementType> | ||
+ | <controlName>ccapiImportJob</controlName> | ||
+ | </importJob> | ||
+ | </source> | ||
+ | |||
+ | == 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: | Identify the following line in the source code and enter this numeric value into the <subsiteID> tag: | ||
Line 34: | Line 110: | ||
[[Reset ADF|Reset the ADF]] for the server and site. | [[Reset ADF|Reset the ADF]] for the server and site. | ||
− | [[Category: | + | [[Category:PT Import Content]] |
Revision as of 12:13, 31 March 2011
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>
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.