Difference between revisions of "CCAPI Config"
From ADF Docs
(→XML Components) |
|||
Line 1: | Line 1: | ||
==Overview== | ==Overview== | ||
− | The CCAPI uses the [[Config|Core Config]] object to handle | + | The CCAPI uses the [[Config|Core Config]] object to handle its site specific configuration. The CCAPI simply needs the URL for the site and other key information like username and password. |
==Steps== | ==Steps== | ||
− | To allow each site to have its own configuration for the CCAPI | + | To allow each site to have its own configuration for the CCAPI: |
− | # Locate the | + | # Locate the '/_cs_apps/config/' directory in your site. If this directory does not exist, create it. |
# Place a file in this directory called "ccapi.xml". | # Place a file in this directory called "ccapi.xml". | ||
− | # Place the following XML content into | + | # Place the following XML content into the ccapi.xml file |
<?xml version="1.0" encoding="utf-8"?> | <?xml version="1.0" encoding="utf-8"?> | ||
<settings> | <settings> | ||
Line 32: | Line 32: | ||
== XML Components == | == XML Components == | ||
− | There are three major components | + | There are three major components in the CCAPI XML Config file: |
− | # <logging> | + | # <logging> This tag contains the flag to enable logging. <br><br> |
− | # <elements> | + | # <elements> This tag contains the Custom Elements and Textblock elements that you would like to use. Be sure to see [[CCAPI Element|CCAPI Content]] page for additional information about how to add/edit data within Textblocks and Custom Elements.<br><br> |
− | # <templates> | + | # <templates> This tag is a work in progress and may not remain as a goal of the CCAPI.<br><br> |
− | # <wsVars> | + | # <wsVars> This node contains the Web Services information for your site.<br><br> |
+ | |||
+ | [[Category:CCAPI]] |
Revision as of 22:58, 20 December 2009
Overview
The CCAPI uses the Core Config object to handle its site specific configuration. The CCAPI simply needs the URL for the site and other key information like username and password.
Steps
To allow each site to have its own configuration for the CCAPI:
- Locate the '/_cs_apps/config/' directory in your site. If this directory does not exist, create it.
- Place a file in this directory called "ccapi.xml".
- Place the following XML content into the ccapi.xml file
<?xml version="1.0" encoding="utf-8"?> <settings> <logging> <enabled>1</enabled> </logging> <elements> <UniqueElementName> <pageID>30622</pageID> <subsiteID>1</subsiteID> <elementType>custom</elementType> <controlName>posts</controlName> </UniqueElementName> </elements> <wsVars> <webserviceURL>http://cfusion/commonspot/webservice/cs_service.cfc?wsdl</webserviceURL> <csuserid>csUserName</csuserid> <cspassword>csPassword</cspassword> <site>Demo</site> <siteURL>http://cfusion/demo</siteURL> <subsiteID>1</subsiteID> <cssites>commonspot-sites</cssites> </wsVars> </settings>
XML Components
There are three major components in the CCAPI XML Config file:
- <logging> This tag contains the flag to enable logging.
- <elements> This tag contains the Custom Elements and Textblock elements that you would like to use. Be sure to see CCAPI Content page for additional information about how to add/edit data within Textblocks and Custom Elements.
- <templates> This tag is a work in progress and may not remain as a goal of the CCAPI.
- <wsVars> This node contains the Web Services information for your site.