• Document Up to Date
  • Updated On 4.0.0

CMIS Configuration

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

Configurations - Open CMIS Configuration

Sample

Here’s a sample CMIS Configuration file (click on the triangle on the left to expand/collapse):

Sample "cmis-config.xml"
CRAFTER_HOME/data/repos/sites/SITENAME/sandbox/config/studio/data-sources/cmis-config.xml
 1<?xml version="1.0" encoding="UTF-8"?>
 2<!--
 3  ~ Copyright (C) 2007-2022 Crafter Software Corporation. All Rights Reserved.
 4  ~
 5  ~ This program is free software: you can redistribute it and/or modify
 6  ~ it under the terms of the GNU General Public License version 3 as published by
 7  ~ the Free Software Foundation.
 8  ~
 9  ~ This program is distributed in the hope that it will be useful,
10  ~ but WITHOUT ANY WARRANTY; without even the implied warranty of
11  ~ MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the
12  ~ GNU General Public License for more details.
13  ~
14  ~ You should have received a copy of the GNU General Public License
15  ~ along with this program.  If not, see <http://www.gnu.org/licenses/>.
16  -->
17
18<!--
19    CMIS repositories configuration file. This files configures 0 or more
20    CMIS-capable repositories as data-sources for content authors to pick
21    from.
22
23Items can be selected in one of two modes:
24- Reference: the item selected is referenced via URL and CrafterCMS will
25    simply insert a direct link to the CMIS repository so the end-user
26    will pull the content directly from the CMIS repo
27- Clone: the item selected is downloaded into CrafterCMS and the end-user
28    will pull the content from CrafterCMS
29
30For every repository you need to specify:
31    <cmis>
32        <repositories>
33            <repository>
34                <id />
35                <type />
36                <url />
37                <username />
38                <password />
39                <base-path />
40                <download-url-regex />
41            </repository>
42        </repositories>
43    </cmis>
44
45    id:	a unique id for this repository, this will be referenced in the
46        data source defined in the content type
47    type: type of the repository, currently Alfresco is the only supported
48        type
49    url: url to the CMIS repository
50    username: username to use to browse the CMIS repository. You only need
51        read access
52    password: password to use for the username above
53    base-path: the base-path to limit browsing under (this means authors
54        using this repository will be limited to browsing under this path)
55    download-url-regex: a regular expression that includes the variable
56        {item_id}. The regular expression contains the full download URL
57        pattern to the item in the CMIS repository, and {item_id} will be
58        replaced by CrafterCMS with the selected item ID.
59-->
60<cmis>
61    <repositories>
62        <!--
63            <repository>
64                <id>alfresco</id>
65                <type>alfresco</type>
66                <url>http://localhost:8080/alfresco</url>
67                <username>guest</username>
68                <password>guest</password>
69                <base-path>/</base-path>
70                <download-url-regex>http://localhost:8080/alfresco/service/api/node/content/workspace/SpacesStore/{item_id}</download-url-regex>
71            </repository>
72        -->
73    </repositories>
74</cmis>