Difference between revisions of "PT Forums CCAPI Configuration"

From ADF Docs
Jump to: navigation, search
(Setup)
Line 6: Line 6:
 
== Setup ==
 
== Setup ==
 
# Create a new page called 'ccapiForums'. Recommend creating this page in the ''/webadmin/forums/'' subsite.  
 
# Create a new page called 'ccapiForums'. Recommend creating this page in the ''/webadmin/forums/'' subsite.  
# Add each of the following elements to the page:
+
# Add each of the following Forums elements to the page:
## 'Forums Categories'
+
## 'Forum Categories'
## 'Forums Topics'
+
## 'Forum Topics'
## 'Forums Threads'
+
## 'Forum Threads'
## 'Forums Messages'
+
## 'Forum Messages'
## 'Forums User Settings'
+
## 'Forum User Settings'
 +
 
 +
# For each element that was added, click on the element indicator and go to 'more...'.  Select 'Name' from the menu.
 +
# In the Element Name field, enter the following text for each:
 +
## 'Forum Categories' - 'ccapiForumCategories'
 +
## 'Forum Topics' - 'ccapiForumTopics'
 +
## 'Forum Threads' - 'ccapiForumThreads'
 +
## 'Forum Messages' - 'ccapiForumTopicsMessages'
 +
## 'Forum User Settings' - 'ccapiForumUserSettings'
  
# Select the 'Photo' element indicator and go to 'more...'.  Select 'Name' from the menu.
 
# In the Element Name field, enter the text 'ccapiPhotoElement'.
 
 
# 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:

Revision as of 16:19, 26 March 2010

Overview

The Forums Application uses the ADF CCAPI to populate forum element records for user settings, categories, topics, threads and messages. The CCAPI needs to be configured for the site and forums 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 Photo Gallery application. Make sure to update the wsVars section with the correct URLs and username/password.

Setup

  1. Create a new page called 'ccapiForums'. Recommend creating this page in the /webadmin/forums/ subsite.
  2. Add each of the following Forums elements to the page:
    1. 'Forum Categories'
    2. 'Forum Topics'
    3. 'Forum Threads'
    4. 'Forum Messages'
    5. 'Forum User Settings'
  1. For each element that was added, click on the element indicator and go to 'more...'. Select 'Name' from the menu.
  2. In the Element Name field, enter the following text for each:
    1. 'Forum Categories' - 'ccapiForumCategories'
    2. 'Forum Topics' - 'ccapiForumTopics'
    3. 'Forum Threads' - 'ccapiForumThreads'
    4. 'Forum Messages' - 'ccapiForumTopicsMessages'
    5. 'Forum User Settings' - 'ccapiForumUserSettings'
  1. Publish this page and view in read mode.
  2. Edit the 'ccapi.xml' file for the site and add the following xml block into the <elements> section:
<Photo>
  <pageID>#####</pageID>
  <subsiteID>##</subsiteID>
  <elementType>custom</elementType>
  <controlName>ccapiPhotoElement</controlName>
</Photo>

To populate the <pageID> and <subsiteID> tags, view the source code for the 'ccapiPhoto' 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.