Now that I have Drupal and Alfresco communicating together, I would like to be able to have certain pages (or nodes) sync to different folders within the Alfresco space. For example, I’d like to have my “products” pages/nodes in Drupal sync to a “products” folder in Alfresco. From looking at the readme file, I’m not exactly clear on how to accomplish this.

Also, I’d like to know more about synching Drupal content types other than pages. How would I go about synching a story or a custom Drupal content-type?

Can you provide some examples?

Thanks,
Tod

Comments

cbalan’s picture

Assigned: Unassigned » cbalan
Status: Active » Fixed

Hey Tod,

Here is an example for a more complex setup:

$conf['cmis_repositories'] = array(
  'default' => array(
    'user' => 'admin',
    'password' => 'admin',
    'url' => 'http://204.236.192.138:8080/alfresco/s/cmis',
  )
);

$conf['cmis_sync_map'] = array(
  'drupal_product' => array(
    'enabled' => TRUE,
    'cmis_repositoryId' => 'default',
    'cmis_folderPath' => '/products',
  ),
  'drupal_vendor' => array(
    'enabled' => TRUE,
    'cmis_repositoryId' => 'default',
    'cmis_folderPath' => '/vendors',
  ),
  'page' => array(
    'enabled' => TRUE,
    'cmis_repositoryId' => 'default',
    'cmis_folderPath' => '/pages',
  )

);

In this example we have drupal_product, drupal_vendor and page drupal content types synchronized to cmis repository.

Please let me know if more details are required.

Thank you,
Catalin Balan

cbalan’s picture

Status: Fixed » Closed (fixed)
col_edinburgh’s picture

would it be possible to use tokens with 'cmis_folderpath' ? The reason I ask is I currently filepath replacement patterns to determine which folder to put the file into. i.e. i have a projectID field and use this in the filepath.