cancel
Showing results for 
Search instead for 
Did you mean: 

Set my own content model as default, when uploading files

arnisraido
Champ in-the-making
Champ in-the-making
I have created my own, Custom Content, (Drop down - "Type" under "General properties" when uploading data).

But now, user must set "Custom content" type for every document, when uploading.

And more - when uploading file through CIFS or WebDAV, documents are set as type "Content"for default, and as I understood - content model type cannot be changed afterwards.

1) Is it possible to set my custom content type as default, for every upload?
2) is it possible, somehow, change document content type after it is uploaded to server?


Thanks!
4 REPLIES 4

_sax
Champ in-the-making
Champ in-the-making
I've investigated that formerly, but to no avail.
Maybe an alternative is to let content types alone and build the functionality solely with aspects, that can be added (automatically) and removed (thus changing the content type practically).

jayjayecl
Confirmed Champ
Confirmed Champ
Why not using a content Rule :
event : inbound
condition : object is of type cm:content
action : specialise type of item => choose your custom content type.

You can see a similar rule in DData Dictionary/Models : every xml file being added is specialized to type cm:dictionaryModel

samuel_penn
Champ in-the-making
Champ in-the-making
You can specialise a type, which allows you to set the content type to a subtype of the current type. e.g., something of type cm:content can be changed to fu:bar as long as type fu:bar is derived from cm:content (i.e., has a <parent>cm:content</parent> definition). See the run action wizard under the document details for how to do this manually/

You should also be able to setup a space rule which does this automatically. Set it to be inherited, and any content added in the folder structure beneath it should be set to that content type.

Sam.

_sax
Champ in-the-making
Champ in-the-making
Thanks, I never figured out, what the specialise type action would do!