04-20-2020 10:51 AM
When a new document has been uploaded to our document library, it has a list of standard attributes in the properties field which are taken from the document itself. An example is a test word document I have uploaded:
Name: TestWordDoc.docx
Title: (None)
Description: (None)
Author: Chris
Mimetype: Microsoft Word 2007
Size: 143 KB
Creator: admin
Created Date: Mon 20 Apr 2020 15:39:10
Modifier: admin
Modified Date: Mon 20 Apr 2020 15:39:10
We have created a model which can be selected from the 'Change Type' action, which then adds additional properties:
04-20-2020 12:29 PM
By default, all operation in Alfresco Share will only allow you to specialize the node type, never to generalise it. Generalisation means loss of metadata, and most customers / users would really try to avoid losing metadata by mistake (e.g. misclicking on the list of types).
Only via addons like the JavaScript Console can you access low level APIs to set the node type back to a more generalised one on the specific node. This functionality is only accessible to an administrator though. If you need something for a general user, then you would have to develop a small customisation yourself to expose this low level API functionality to end users.
04-21-2020 08:52 AM
Hi thanks for your reply.
I am an administrator of our Alfresco system and have been tasked with this requirement. So today I have created a model called 'Default properties', which I have mirrored the properties to exactly how a document that has not had a model applied to it would look. When I first upload a document, I am able to select 'Change Type' and it gives me the option of both models/types we currently have, however, if I select the model that has 'Document Owner' etc in it, then try to change the type to the default type that I created, there are no types listed. It is as if once one type has been assigned to a document, that it cannot be removed or changed, which in the event that you apply the wrong type to a document, that you must delete the document and then re-upload it again to be able to change its type again.
So in the event that I am unable to create a type and assign it to the document in the scenario above, are you able to advise how as an admin I would be able to do this through the java console?
Explore our Alfresco products with the links below. Use labels to filter content by product module.