cancel
Showing results for 
Search instead for 
Did you mean: 

Manually modify items properties

zinformatica
Champ in-the-making
Champ in-the-making
Hi there
We have a customer who, among other things, needs to manualy change creation and modification times of uploaded items in the alfresco repository.

I have been searching through wiki, google and the forums, but have not found an answer.
I guess changes has to be made in at least one web-client-config*.xml configuration file, but don´t know wich file and what to edit
Any idea would be greately apreciated

Thanks
Nicolas
5 REPLIES 5

invictus9
Champ in-the-making
Champ in-the-making
The approach that Alfresco has taken, and with which I have come to agree, is that the created and modified information is a function of the Alfresco repository and does not "belong" to the document owner. They represent information that is known to Alfresco, and for which Alfresco is the source.

To deal with what your customer (and many other people want), you should, according to Alfresco, create a customized aspect that replicates those properties. The information in those properties belongs to the document owner (your customer) and he is free to change them as needed. You may need to provide some custom changes so that those values are displayed rather than those for cm:auditable, but you have the source code.

zinformatica
Champ in-the-making
Champ in-the-making
Where should I look at or read in order to learn how to add those new modificable properties?
Thanks!

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
I do no agree on this to do it with aspect, because on details dialog you will have 2 Date fealds.

you should create some dialog where you can set this dates, as they are, but you can add parameter to know who changed them and from what values just for history (use aspect for this if you realy need this).
just decide what you need and how do you want it to look like, I can hand you the code.

zinformatica
Champ in-the-making
Champ in-the-making
I managed to sort this out by adding two new date fiels to Alfresco's basic content model. sorry boys, but this seemed the easiest and fastest approach.
Now, how could i make these new properties useful in a search? this is in order to search using a criteria based in the new properties.
Thanks!

savic_prvoslav
Champ on-the-rise
Champ on-the-rise
Are you thinking of advanced search?