hello,
I have created a successful connection with Alfresco community edition using following code in settings.php:
$conf['cmis_repositories'] = array(
'default' => array(
'user' => 'admin',
'password' => 'admin@123',
'url' => 'http://127.0.0.1:8080/alfresco/api/-default-/public/cmis/versions/1.0/atom'
)
);
However , now I want to sync the data from Alfresco community to content type article in drupal so that entire data in location Sites/demo-site/documentLibrary/News Content would be added in DRupal as Article type of node. Currently my Root folder for cmis directory has also the same location and i could browse through the directory as well. Followed one forum and added following code but no success :(. can anybody there help me?
$conf['cmis_sync_map'] = array(
'article' => array(
'enabled' => TRUE,
'cmis_sync_cron_enabled' => TRUE,
'cmis_folderPath' => '/Sites',
'subfolders' => TRUE,
'full_sync_next_cron' => TRUE,
'cmis_sync_nodeapi_enabled' => TRUE,
'subfolders' => TRUE,
'cmis_type' => 'alf:article',
'content_field' => 'body',
),
);
$conf['cmis_sync_map']['article']['fields'] = array(
array('drupal' => 'title', 'cmis' => 'cmis:name', 'drupal to cmis' => TRUE, 'cmis to drupal' => TRUE),
array('drupal' => 'body', 'cmis' => 'cm:content', 'drupal to cmis' => TRUE, 'cmis to drupal' => TRUE),
array('drupal' => 'field_object_id', 'cmis' => 'cmis:objectId', 'drupal to cmis' => TRUE, 'cmis to drupal' => TRUE),
);
I get cmis_sync_cron error in error logs.Added screenshot of the error.
Please need help.
| Comment | File | Size | Author |
|---|---|---|---|
| cmis_err.jpg | 462.12 KB | Nishita |
Comments
Comment #1
Nishita commentedNeed help urgently..
Thanks in advance
Comment #2
Nishita commentedI changed the cmis_folderPath to /Sites/demo-site/documentLibrary/News Content where I have my content in Alfresco. Now I am getting below error:
HTTP call to [http://127.0.0.1:8080/alfresco/api/-default-/public/cmis/versions/1.0/at... Content&filter=&includeAllowableActions=&includeACL=&includePolicyIds=&includeRelationships=&renditionFilter=] returned [505]. Response:
Can someone help me in this case?
Thanks
Comment #3
Nishita commentedIs that could be version problem? I read somewhere that 505 is version specific issue.
My drupal version is 7.36
cmis_views : 7.x-1.1
cmis : 7.x-1.6
Alfresco Community : 5.0
Comment #4
Nishita commentedI tried with alfresco community 4.2c with following configuration and sync worked for me.
$conf['cmis_repositories'] = array(
'default' => array(
'user' => 'admin',
'password' => 'admin@123',
'url' => 'http://localhost:8080/alfresco/service/cmis'
)
);
$conf['cmis_sync_map'] = array(
'page' => array(
'enabled' => TRUE,
'cmis_sync_cron_enabled' => TRUE,
'cmis_repositoryId' => 'default',
'cmis_folderPath' => '/Sites/demo/documentLibrary',
'subfolders' => TRUE,
'full_sync_next_cron' => TRUE,
'content_field' => 'body',
'fields' =>array('title'=> 'cmis:name')
),
);
hope it might help others ..
however I am having one query whether can we create a template/change the layout of content getting displayed from Alfresco onclick of the any items from cmis_views module inplace of getting content in Drupal repository as nodes and then display them?
Comment #5
Sun Dancer commentedHello Nishita,
Have you solved your problem for Alfresco 5.0.x and Drupal 7.x sync..?
If yes, could you please tell me how ? I'm having the same issue,
thanks in advance