Modify properties of content using rule
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2009 09:54 AM
Hi all i'm new in Alfresco develop and i have a little trouble.
I need to set using a javascript rule (or any other way if there is) content metadata when are upload in alfresco. So using arule that execute script i want to set (override) Title, Description, and author information.
Is therre somewhere any examples of this? can someone help me to undesrtand where i can find infomration to write something.
Thanx everybody.
Ema
I need to set using a javascript rule (or any other way if there is) content metadata when are upload in alfresco. So using arule that execute script i want to set (override) Title, Description, and author information.
Is therre somewhere any examples of this? can someone help me to undesrtand where i can find infomration to write something.
Thanx everybody.
Ema
Labels:
- Labels:
-
Archive
2 REPLIES 2

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-05-2009 11:04 AM
document.properties["cm:title"]="my_title";
document.save();
etc.for other attributs
document.save();
etc.for other attributs
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
06-08-2009 03:32 AM
Thx zomurn i'll try your sample but it doesnt wirk using your code.
I wrote a script saved in Scripts under Data Dictionary, wrote a rule over all inbound contents to execute a script.
When i check propoerties of file just loaded author and title are "admin" and the name of the file.
Where i can debug it? Where i can find this information?
Thax all.
I wrote a script saved in Scripts under Data Dictionary, wrote a rule over all inbound contents to execute a script.
When i check propoerties of file just loaded author and title are "admin" and the name of the file.
Where i can debug it? Where i can find this information?
Thax all.
