Alfresco

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
  )
 

Creating a SiteTree webscript

 

One of the things

we needed to do was create a script that displayed the site hierarchy. I tried in vain to get this working with the built in webscripts that come with Alfresco, so in the end, decided to build my own. The steps to reproduce are as follows.

Setting up a development enviornment for developing SpringSurf apps

Setting up a development environment for developing with SpringSurf is not as easy as you might thing...or is it just me? Below is a quick and dirty listing of the things you need as well as some of the gotchas you might run into. Before I do, I should mention that there is a great tutorial at http://www.springsurf.org/sites/1.0.0.M3/spring-surf-devtools/spring-surf-roo-addon/reference/html/intro.html#intro-installationhttp://www.springsurf.org/sites/1.0.0.M3/spring-surf-devtools/spring-surf-roo-addon/reference/html/intro.html#intro-installation which is more or less what you need.

Alfresco: Wish List

There is no doubt about it, but Alfresco is already a great system that can allow you to do a multitude of things, but, things can always be improved upon. I would imagine this will be a constantly evolving list, but here's some wishes to start with. If you have anymore, let me know and I'll add them in.

Building Your First Webscript

Webscripts are fast becoming the main development tool for those who are seeking to extend and enhance Alfresco. In this article I'm going to try and detail how to build a webscript. This is as much for my own documentation needs as it is for public consumption. So if you notice any errors, then please let me know!

More Articles...

Page 1 of 2

Start
Prev
1

Member Login

Sponsored Links

Sponsored Links