cancel
Showing results for 
Search instead for 
Did you mean: 

Creation of New DataType in Content Model

ashwinis
Champ in-the-making
Champ in-the-making
Hi,

Is there way to create a custom data type in Content modelling?
Other than primitive data types, alfresco supports "any" but is it possible to create new custom data type in the data model?
3 REPLIES 3

mrogers
Star Contributor
Star Contributor
yes, but its a potentially big job to add a new type.   You need to worry about how it is persisted, displayed, compared and indexed.    The data model part is a fairly small part of the task.

What new type are you thinking of?

ashwinis
Champ in-the-making
Champ in-the-making
Can you please explain, i want to know more about the creation of custom content type.
say for example image, audio, video file.

mrogers
Star Contributor
Star Contributor
I thought you meant something like d:complexNumber, d:geographic or d:currency

Ah, do you mean a mime type?

Mimetypes are configured by a mimetype map.    On the following paths.

<value>classpath:alfresco/mimetype/mimetype-map.xml</value>
<value>classpath:alfresco/mimetype/mimetype-map-openoffice.xml</value>
<value>classpath*:alfresco/module/*/mimetype-map*.xml</value>
<value>classpath*:alfresco/extension/mimetype/*-map.xml</value>

You may also need to configure Alfresco Share.    I'm not sure whether Share reads the repository mimetypes service or not.