Custom Type Example



An example custom type taken from our model.

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
        <type name="cls:events">
<title>CLS Events</title>
<parent>cls:www</parent>
<properties>
<property name="cls:eventspeaker">
<type>d:text</type>
<multiple>true</multiple>
</property>
<property name="cls:eventcontact">
<type>d:text</type>
<multiple>false</multiple>
</property>
<property name="cls:eventlocation">
<type>d:text</type>
<multiple>false</multiple>
</property>
<property name="cls:eventdate">
<type>d:datetime</type>
<multiple>false</multiple>
</property>
<property name="cls:eventduration">
<type>d:text</type>
<multiple>false</multiple>
</property>
<property name="cls:eventtype">
<type>d:text</type>
<multiple>false</multiple>
</property>
</properties>
</type>

Config I've tried for the Drupal integration

1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
$conf['cmis_sync_map'] = arrayarray(
  'page' => arrayarray(
    'enabled' => TRUE,
    'cmis_folderPath' => '/WebContent/Website'
  ),
  'cls_event' => arrayarray(
        'enabled' => TRUE,
        'cmis_folderPath' =>'/WebContent/Repo/cls_events',
        'cmis_type' => 'cls:events',
        'fields' => arrayarray(
                'field_cls_eventspeaker' => 'cls:eventspeaker',
                'field_cls_eventcontact' => 'cls:eventcontact',
                'field_cls_eventlocation' => 'cls:eventlocation',
                'field_cls_eventdate' => 'cls:eventdate',
                'field_cls_eventduration' => 'cls:eventduration',
                'field_eventtype' => 'cls:eventtype'
        ),
        'subfolders' => TRUE,
        'full_sync_next_cron' => TRUE,
        'cmis_sync_cron_enabled' => TRUE,
        'cmis_sync_nodeapi_enabled' => TRUE
  )
 


Add this page to your favorite Social Bookmarking websites
Reddit! Del.icio.us! Mixx! Free and Open Source Software News Google! Live! Facebook! StumbleUpon! TwitThis Joomla Free PHP

Add comment

Security code
Refresh

Member Login

Sponsored Links

Sponsored Links