cancel
Showing results for 
Search instead for 
Did you mean: 

Creating Custom Type without the 'content' propert

axyd
Champ in-the-making
Champ in-the-making
Hello!

I need to create a custom type, but without any content (file or html) in it. Just a set of string properties.
(I need it to implement a Dictionary functional: address book, product catalog, …).

How can I do this?

I tried to extend my custom type from the “cm:contentâ€
9 REPLIES 9

rivarola
Champ on-the-rise
Champ on-the-rise
Hello,

You can create your own types by inheriting from sys:base, cm:cmobject or any other existing type, but Alfresco UI only manages cm:content and derived types in the content properties stylesheets…
As a consequence you have to create your own UI to manage your custom non-content types.

loftux
Star Contributor
Star Contributor
Why not use a cm:folder object? It may not be optimal, since you will have lots of folders and that may not be good for browsing. But you will get things like for you product catalog, you can put pictures of the product in that space or specifiactions, and have them all nicely packaged together.

/Peter Löfgren

mabayona
Champ on-the-rise
Champ on-the-rise
This approach of using a cm:folder instead is OK, but has a limitation that you should know about: it is not possible to associate an advanced workflow to a cm:folder. It is only possible to associate an advanced workflow to cm: content types (and its derivatives):

http://issues.alfresco.com/browse/AWC-1168

This is, of course only a limitation if you plan to use advanced workflows.

pjcaracuel
Champ in-the-making
Champ in-the-making
In First time,


Why do you need a custom type without content?

Regards

mabayona
Champ on-the-rise
Champ on-the-rise
Well, this is usefull, if you need for instance content with attributes only (e.g.product, name, number, …) to be filled with a form-like interface and without the "content" card-like standard with any of the cm:content types and sub-types.

axyd
Champ in-the-making
Champ in-the-making
Why do you need a custom type without content?
Address Book, Customer Details, Product Catalog, Warehouse, …
I.e. more general solution, not only “pureâ€

pjcaracuel
Champ in-the-making
Champ in-the-making
FYI:

Web Client 2.1 does not support instantiation of types that do not inherit from cm:content - composition hard to implement

http://issues.alfresco.com/browse/AWC-1558

Regards

linhnh
Champ in-the-making
Champ in-the-making
Why do you need a custom type without content?
Address Book, Customer Details, Product Catalog, Warehouse, …
I.e. more general solution, not only “pureâ€

mabayona
Champ on-the-rise
Champ on-the-rise
A potential solution is to use the new ECM Forms (available in 2.9 onwards) where it is possible to fill in user defined forms to input content in Alfresco. The content is stored in XML only.

The form is user-defined in schema Xforms/chiba format and therefore the user can choose what and how to display it in the form.

The bad part is that his functionality is pretty new and there are not many reports of its maturity in the forums.

Welcome to the bleeding edge….Smiley Wink