cancel
Showing results for 
Search instead for 
Did you mean: 

Applying categories to existing repository

christonic
Champ in-the-making
Champ in-the-making
Hi there,

I've set up a basic CMS system using alfresco community. It doesnt need to be particularly sophisticated and will just use directory structure, tags, and categories to enable users to efficiently access the data that they require.

Anyway, I've put a site together and added a lot of data with tags but since i never had time to RTFM before starting I have not set up the categories and rules!!!

Now the required categories are defined they need to be applied to the existing data. It would be good to not have to do this manually for every node!

There are two ways i would like to be able to do this:

1) via a client software or standard one-shot script that can apply aspects/categories to a group of nodes (preferably with a recursive option)
2) Recursively applying parent categories to sub-category nodes. E.g: i I would like all items categorised "disciplines\mechanical engineering\turbomachines" to be also categorised (or inherit) the "disciplines\mechanical engineering" category.

I guess this is quite a common thing to do and in my repository new categories may need to be added in the future and retrospectively applied to existing data. Unfortunately the client doesnt seem to allow aspects, categories or tags to be applied to multiple selected nodes!!!

Many thanks for any guidance!

Regards
3 REPLIES 3

mlagneaux
Champ on-the-rise
Champ on-the-rise
Hello christonic,

I think you can do that creating rules. You can create a rule that add categories when a node is created in a space. You can choose if the rule applies to sub-folders or not.
To add your categories to existing nodes, perhaps you can do that reapplying your rule to a folder (Execute rules action on Manage rules page). If it is not possible, you can write a javascript script (using Alfresco Javascript API) and launch it via "Run action" action in Alfresco Explorer.

christonic
Champ in-the-making
Champ in-the-making
Hi there,

Cheers… Rules for categorisation of new items have been added to appropriate folders and i'll have a shot at putting script together for adding root categories. I was just being lazy and hoping there would be something with a GUI to do this already!

Actually there is another problem… only my directory folders appear to have the manage aspects command available so I cant add categorisable aspect to any content items such as pdfs and images. Any ideas?

Thanks

PS sorry if this is all in the manual… its quite hard to get into and im trying to avoid delving too deep into alfresco beyond getting my content organised and accessible!!!

ipirat
Champ in-the-making
Champ in-the-making
Hi christonic,

please refere to this post on how to add an aspect to all documents in a folder.
you can also add certain categories to all documents in a folder in the same manner (using a different action in a rule)

https://forums.alfresco.com/forum/end-user-discussions/alfresco-share/adding-aspect-multiple-documen...