Add aspect when a folder is created
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2012 10:45 AM
Hello,
i'm new in Alfresco and i use the version 4.0.d. I've created a new aspect and i want that when a folder is created, this new aspect will be added automatically or something like a check button, but this i can edit later. I just want to know if it's possible i add the aspect when the folder is created.
i'm new in Alfresco and i use the version 4.0.d. I've created a new aspect and i want that when a folder is created, this new aspect will be added automatically or something like a check button, but this i can edit later. I just want to know if it's possible i add the aspect when the folder is created.
Labels:
- Labels:
-
Archive
7 REPLIES 7
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎05-31-2012 10:49 AM
Hello,
yes - something like this can be achieved either by configuring a content rule or implementing a content policy. For rules see the Alfresco Documentation on Using Rules.
Regards
Axel
yes - something like this can be achieved either by configuring a content rule or implementing a content policy. For rules see the Alfresco Documentation on Using Rules.
Regards
Axel
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2012 10:52 AM
So, i think that i can't do it with a rule. I want to put a check box in the create folder form and when this check box is selected, the aspect will be added to the folder.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2012 11:18 AM
Hello,
ok, then a Form Filter would be the way I'd go - that would require implementing a piece of Java code. Still, this could also be done via a rule. You could set up the checkbox as a boolean property on your folder and have a rule that applies the aspect based on the value of that boolean property.
Regards
Axel
ok, then a Form Filter would be the way I'd go - that would require implementing a piece of Java code. Still, this could also be done via a rule. You could set up the checkbox as a boolean property on your folder and have a rule that applies the aspect based on the value of that boolean property.
Regards
Axel
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2012 11:34 AM
Thanks man, but, can you help me with this code? What's the code to add the aspect to the folder created?
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2012 12:04 PM
Hello,
hmm, for that kind of rule, you should not need code as this simple example should be realizable via pure rule configuration. Again, please see the documentation on that matter. If you have to use a JavaScript action (because you want to do more than possible via pure configuration) you should have a look at the JavaScript API wiki page.
Regards
Axel
hmm, for that kind of rule, you should not need code as this simple example should be realizable via pure rule configuration. Again, please see the documentation on that matter. If you have to use a JavaScript action (because you want to do more than possible via pure configuration) you should have a look at the JavaScript API wiki page.
Regards
Axel
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎06-01-2012 12:22 PM
Ok, thank you for the help.
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
‎08-28-2013 02:30 AM
Thank you..