PT Article Editor CCAPI Configuration

From ADF Docs
Jump to: navigation, search

Overview

The Article Editor Application uses the ADF CCAPI to populate article records and create article pages. This needs to be configured for the site and article editor app.

Follow the steps to setup the CCAPI Config file for the site if this is not done. Once this is completed, follow the steps below to setup the CCAPI config for the Article Editor App. Make sure to update the wsVars section with the correct URL's and username/password.

Important: Make sure that the CommonSpot user account in the CCAPI Configuration is a member of the Site Administrators group.

Setup

  1. Create a new page called 'ccapiArticle'. Recommend creating this page in the /webadmin/articles/ subsite.
  2. Add the 'Article' element to the page.
  3. Select the 'Article' element indicator and go to 'more...'. Select 'Name' from the menu.
  4. In the Element Name field, enter the text 'ccapiArticleElement'.
  5. Publish this page and put in read mode.
  6. Edit the 'ccapi.xml' file for the site and add the following xml block into the <elements> section:
<Article>
  <pageID>#####</pageID>
  <subsiteID>##</subsiteID>
  <elementType>custom</elementType>
  <controlName>ccapiArticleElement</controlName>
</Article>
  1. To populate the <pageID> and <subsiteID> tags, view the source code for the 'ccapiArticle' page that was just created.
  2. Identify the following line in the page's source code and enter this numeric value into the <subsiteID> tag in the ccapi.xml config file:
var jsSubSiteID = ##;
  1. 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.