CCAPI Library Component
From ADF Docs
Contents
Overview
CommonSpot has an extensive API for creating content (pages, subsites, images etc...). The API can however, be a bit difficult to work with. The CCAPI is a library utility packaged with the ADF. Using the CCAPI you can complete simple tasks like creating a page easily with code like this:
metadata=structNew(); metadata.templateID=9122; metadata.name="My New Page"; metadata.title="My New Page Title"; application.ADF.csPage.createPage(metadata);
The CCAPI is essentially an application but is located in the ADF Library in the /ADF/lib/CCAPI directory. The CCAPI components work together to make it easy to add/modify content programmatically.
CCAPI details
The CCAPI is actually a series of components in combination with a configuration file that piggybacks on top of the Application Site Config option.
CFC's
- ccapi controls the main configuration of the app
- csContentPopulate Content into a Textblock/Custom Element
- csPage Create/Delete Pages
- csSubsite Create Subsites