CON-API (Content Server)

This API is used if conceptcms should be a content server for an external application (EA).

Process

1.  External application (EA) calls the XML-RPC function "cmapi.SendPage" in cmsrv_[wsname].php ([wsname] = workspace name) file with parameters:

$cmParams = array(
    CMSAPI_ID => EA ID  
    CMSAPI_PWD => EA Password

    CMSAPI_Type => Retrieve content format
    CMSAPI_SysContentID => System content ID
    CMSAPI_MenuItem => conceptcms menu item
    CMSAPI_PortalMenuItem => EP menu item
    CMSAPI_CDOID => conceptcms CDO ID
    CMSAPI_IdLanguage => conceptcms CDO language ID
       

    CMSAPI_URL => EA URL to be replaced in conceptcms links
    CMSAPI_UserName => User ID in EA
    CMSAPI_CustomerCode => Customer ID in EA
);

2. If EA is validated (valid EA ID and PWD and valid IP address), conceptcms will return the content corresponding to the specified conceptcms CDO ID of conceptcms menu item ID.  This content can be returned in structured way (an array with ce => value) or in HTML format (document ready to display).  To control the return format use the variable: CMSAPI_Type (default is 1 (structured data), 2 is ready-t- display content).