I have cerated a site xyx and uploaded a pdf document.I have got Name Title etc, I want to add an extra text field - Document ID as property of the document.
How do i do this? I am using alfresco-4.2.c in fedora 17 linux 64bit
You can do this in many ways. one way to do this is 1. Create an aspect with Document ID as property. 2. Then set a rule for applying this aspect for documents uploaded in a space where you want to upload the documents. 3. Add the aspect in share-config-custom.xml so that the property is visible when you edit the document properties. 4. When you edit the document properties you will see the Document ID property.
I did this had problems with the document id in the aspect. found it would not show correctly. created an id field and applied the sysid to and this worked. if( !document.hasAspect("newAspect:coreAspect") ) { document.addAspect("newAspect:coreAspect"); document.properties["newAspect:id"] = document.properties["sys:node-dbid"]; document.properties["newAspect:createdDate"] = new Date(); document.save(); }