Drupal CMIS module

May 4
blog author

kso

Developer

In a recent project, we needed a way in which we can connect Drupal to Alfresco and vice-versa. This is where CMIS module (http://drupal.org/project/cmis) came in to play. CMIS module provides API packages to connect to “CMIS compliant systems to bi-directionally synchronize content between the CMIS ECM system and Drupal.” This module, simply put, allows Drupal to access Alfresco content inside of your Drupal site. Here are some screenshots of the CMIS browser.


 

To set it up you do need to specify the following in your settings.php. In the project that I worked on I simply exposed a settings page that can edit this function. Here is the code

$conf['cmis_repositories'] = array(   'default' => array(     'user' => 'admin',     'password' => 'admin',     'label' => 'local cmis repo', //optional     'url' => 'http://localhost:8080/alfresco/s/cmis', //point this to your alfresco instance   ), );

Settings:(Taken from CMIS module README.txt) * user - Generic username used by cmis_common to authenticate Drupal to the CMIS repository - optional, used by cmis_common * password - Generic password used by cmis_common to authenticate Drupal to the CMIS repository - optional, used by cmis_common * url - CMIS repository endpoint url - mandatory, used by cmis_common * label - repository label - optional, used by cmis_browser's CMIS repository switcher block, useful if connecting to multiple repositories * browser_default_folderId, browser_default_folderPath - default CMIS folder displayed by cmis_browser module - optional, defaults to `repositoryInfo['cmis:rootFolderId']`, used by cmis_browser * transport - Drupal's module that implements hook_cmis_service($url, $properties, $settings) hook, where : - $url - CMIS absolute REST url - $properties - request properties - $settings - CMIS repositories settings comming from $conf['cmis_repositories'] - optional, defaults to `cmis_common` used by cmis module - See cmis_headerswing section below for more information There is more to it than just using the CMIS browser within the CMIS module.

In my next blog, we can take a closer look at the CMIS Browser.