Difference between revisions of "PT Social Media CCAPI Configuration"
Gcronkright (talk | contribs) (Created page with 'Back to Build Subsites, Templates and Pages == Overview == The Social Media Application uses the ADF CCAPI to po…') |
(No difference)
|
Revision as of 22:03, 7 July 2011
Back to Build Subsites, Templates and Pages
Overview
The Social Media Application uses the ADF CCAPI to populate each of the social media service custom element records with moderation data. 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
- Create a new page called 'ccapiSocialMedia'. Recommend creating this page in the /webadmin/socialmedia/ subsite.
- Add each of the following Forums elements to the page:
- 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 appropriate name for each element:
- ccapiFacebookPages
- ccapiTwitterAccountsKeywords
- ccapiWordPressBlogs
- ccapiYouTubeChannels
- Publish this page and view in read mode.
- Edit the 'ccapi.cfm' file for the site and add the following xml blocks into the <elements> section:
- an example 'ccapi.cfm' file is in the pt_social_media > site-files > _cs_apps > config folder
<ForumCategories>
<pageID>#####</pageID>
<subsiteID>##</subsiteID>
<elementType>custom</elementType>
<controlName>ccapiFacebookPages</controlName>
</ForumCategories>
<ForumTopics>
<pageID>#####</pageID>
<subsiteID>##</subsiteID>
<elementType>custom</elementType>
<controlName>ccapiTwitterAccountsKeywords</controlName>
</ForumTopics>
<ForumThreads>
<pageID>#####</pageID>
<subsiteID>##</subsiteID>
<elementType>custom</elementType>
<controlName>ccapiWordPressBlogs</controlName>
</ForumThreads>
<ForumMessages>
<pageID>#####</pageID>
<subsiteID>##</subsiteID>
<elementType>custom</elementType>
<controlName>capiYouTubeChannels</controlName>
</ForumMessages>
To populate the <pageID> and <subsiteID> tags, view the 'source' code for the 'ccapiForums' 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.