03-01-2012 06:48 AM
/*
Repository Configuration
————————
*/
$conf['cmis_repositories'] = array(
'default' => array(
'user' => 'admin',
'password' => 'admin',
'url' => 'http://it02.cloud.lan:8080/alfresco/s/cmis',
'label' => 'Alfresco'
)
);
/*
Drupal-CMIS synchronization
—————————
*/
$conf['cmis_sync_map'] = array(
/*
'page' => array(
'enabled' => TRUE,
'full_sync_next_cron' => TRUE,
'cmis_sync_cron_enabled' => TRUE,
'cmis_sync_nodeapi_enabled' => FALSE,
'cmis_folderPath' => '/Sites/swsdp/documentLibrary/test4',
),
*/
'content_type_cmis' => array(
'enabled' => TRUE,
'full_sync_next_cron' => TRUE,
'cmis_sync_cron_enabled' => TRUE,
'cmis_sync_nodeapi_enabled' => FALSE,
'cmis_folderPath' => '/Sites/swsdp/documentLibrary/presentations',
'fields' => array(
'title' => 'cmis:name',
'field_cmis_objectid' => 'cmis:versionSeriesId',
'field_name_doc_from_cmis' => 'cmis:contentStreamMimeType',
'body' => 'cmis:name'
)
)
);
function cmis_sync_sync_cmis_drupal_prepare($cmis_object, $node) {
$link = "<a target=\"_blank\" href=\"http://newwebsite.esteco.lan/cmis/browser?id=";
$link = $link . (string)$cmis_object->id ;
$link = $link . "\">" . $cmis_object->properties['cmis:name'] . "</a>" ;
if (strstr($cmis_object->properties['cmis:contentStreamMimeType'] ,"text/")){
$node->body = $node->body . "<br><br><br> ";
} else {
$node->body = "<br><br><br> ";
}
$node->body = $node->body . "<br><br><br><br><br><br>" . $link ;
return $node;
}
11-19-2013 10:55 AM
06-29-2015 07:58 AM
Tags
Find what you came for
We want to make your experience in Hyland Connect as valuable as possible, so we put together some helpful links.