CMIS Configuration

The CMIS configuration file allows you to configure 0 or more CMIS-capable respositories as data-sources for content authors to pick from. To modify the CMIS configuration, click on siteConfig from the bottom of the Sidebar, then click on Configuration and select CMIS Configuration from the dropdown list.

Configurations - Open CMIS Configuration

Sample

CRAFTER_HOME/data/repos/sites/SITENAME/sandbox/config/studio/data-sources/cmis-config.xml
 1
 2
 3
 4
 5
 6
 7
 8
 9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
<?xml version="1.0" encoding="UTF-8"?>
<!--
    CMIS repositories configuration file. This files configures 0 or more
    CMIS-capable repositories as data-sources for content authors to pick
    from.

Items can be selected in one of two modes:
- Reference: the item selected is referenced via URL and Crafter CMS will
    simply insert a direct link to the CMIS repository so the end-user
    will pull the content directly from the CMIS repo
- Clone: the item selected is downloaded into Crafter CMS and the end-user
    will pull the content from Crafter CMS

For every repository you need to specify:
    <cmis>
        <repositories>
            <repository>
                <id />
                <type />
                <url />
                <username />
                <password />
                <base-path />
                <download-url-regex />
            </repository>
        </repositories>
    </cmis>

    id:     a unique id for this repository, this will be referenced in the
        data source defined in the content type
    type: type of the repository, currently Alfresco is the only supported
        type
    url: url to the CMIS repository
    username: username to use to browse the CMIS repository. You only need
        read access
    password: password to use for the username above
    base-path: the base-path to limit browsing under (this means authors
        using this repository will be limited to browsing under this path)
    download-url-regex: a regular expression that includes the variable
        {item_id}. The regular expression contains the full download URL
        pattern to the item in the CMIS repository, and {item_id} will be
        replaced by Crafter CMS with the selected item ID.
-->
<cmis>
    <repositories>
        <!--
            <repository>
                <id>alfresco</id>
                <type>alfresco</type>
                <url>http://localhost:8080/alfresco</url>
                <username>guest</username>
                <password>guest</password>
                <base-path>/</base-path>
                <download-url-regex>http://localhost:8080/alfresco/service/api/node/content/workspace/SpacesStore/{item_id}</download-url-regex>
            </repository>
        -->
    </repositories>
</cmis>