Difference between revisions of "PT Forums CCAPI Configuration"

From ADF Docs
Jump to: navigation, search
(Created page with '== Overview == The Forum Application uses the ADF CCAPI to populate profile records and create categories, topics, threads and message posts. The CCAPI needs to be con…')
 
Line 1: Line 1:
 
== Overview ==
 
== Overview ==
The Forum Application uses the [[CCAPI|ADF CCAPI]] to populate profile records and create categories, topics, threads and message posts.  The CCAPI needs to be configured for the site and forums application.
+
The Forums Application uses the [[CCAPI|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|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.
 
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 Photo Gallery application.  Make sure to update the ''wsVars'' section with the correct URLs and username/password.
  
 
== Setup ==
 
== Setup ==
# Create a new page called 'ccapiPhoto'. Recommend creating this page in the ''/webadmin/photogallery/'' subsite.  
+
# Create a new page called 'ccapiForums'. Recommend creating this page in the ''/webadmin/forums/'' subsite.  
# Add the 'Photo' element to the page.
+
# Add each of the following  elements to the page:
 +
## 'Forums Categories'
 +
## 'Forums Topics'
 +
## 'Forums Threads'
 +
## 'Forums Messages'
 +
## 'Forums User Settings'
 +
 
 
# Select the 'Photo' element indicator and go to 'more...'.  Select 'Name' from the menu.
 
# Select the 'Photo' element indicator and go to 'more...'.  Select 'Name' from the menu.
 
# In the Element Name field, enter the text 'ccapiPhotoElement'.
 
# In the Element Name field, enter the text 'ccapiPhotoElement'.
Line 34: Line 40:
 
[[Reset ADF|Reset the ADF]] for the server and site.
 
[[Reset ADF|Reset the ADF]] for the server and site.
  
[[Category:Photo Gallery]]
+
[[Category:Forums]]

Revision as of 16:12, 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 elements to the page:
    1. 'Forums Categories'
    2. 'Forums Topics'
    3. 'Forums Threads'
    4. 'Forums Messages'
    5. 'Forums User Settings'
  1. Select the 'Photo' element indicator and go to 'more...'. Select 'Name' from the menu.
  2. In the Element Name field, enter the text 'ccapiPhotoElement'.
  3. Publish this page and view in read mode.
  4. 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.