Custom Categories at bootstrap
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-16-2011 11:50 AM
Hello,
I do have a problem with my custom categories defined at bootstrap.
The problem is not in the definition itself (or maybe yes), it's in the use of category when categorizing a content in Share.
Let me explain :
1 - I have created a custom-import-export-context.xml in which one I tell to get the xml containing my categories
2 - when bootstrapping, everything goes fine and when looking in Share the categories, all of them are in the right place
So the problem is as follow :
When uploading a content and giving it a category, I may see the dialog box working properly, the category is well affected to the content. But when I click on the category'slink, the category seems to be empty.
In fact there is a problem with the link generated for the category. Looking at the links given on the top of the dictionnary instead of getting a link looking like :
Racine> Activites> Centre d'appel
I do have a link looking like :
Racine> categories> MBS> Activites> Centre d'appel
And of course it shows an empty category as it doesn't exist.
Two more things
- when using the tree category on left, everything works perfectly.
- when using the default alfresco categories.xml, everything works perfectly.
here is my categories.xml :
thank you for your help
I do have a problem with my custom categories defined at bootstrap.
The problem is not in the definition itself (or maybe yes), it's in the use of category when categorizing a content in Share.
Let me explain :
1 - I have created a custom-import-export-context.xml in which one I tell to get the xml containing my categories
2 - when bootstrapping, everything goes fine and when looking in Share the categories, all of them are in the right place
So the problem is as follow :
When uploading a content and giving it a category, I may see the dialog box working properly, the category is well affected to the content. But when I click on the category'slink, the category seems to be empty.
In fact there is a problem with the link generated for the category. Looking at the links given on the top of the dictionnary instead of getting a link looking like :
Racine> Activites> Centre d'appel
I do have a link looking like :
Racine> categories> MBS> Activites> Centre d'appel
And of course it shows an empty category as it doesn't exist.
Two more things
- when using the tree category on left, everything works perfectly.
- when using the default alfresco categories.xml, everything works perfectly.
here is my categories.xml :
<view:view xmlns:view="http://www.alfresco.org/view/repository/1.0" xmlns:sys="http://www.alfresco.org/model/system/1.0" xmlns:cm="http://www.alfresco.org/model/content/1.0"> <cm:category_root view:childName="cm:categoryRoot"> <cm:name>categories</cm:name> <cm:categories> <!– Software Document Classification –> <cm:category view:childName="cm:generalclassifiable"> <cm:name>MBS</cm:name> <cm:subcategories> <cm:category> <cm:name>Sites</cm:name> <cm:subcategories> <cm:category> <cm:name>Bacalan</cm:name> </cm:category> <cm:category> <cm:name>Epinal</cm:name> </cm:category> <cm:category> <cm:name>Jeuneurs</cm:name> </cm:category> <cm:category> <cm:name>Lille</cm:name> </cm:category> <cm:category> <cm:name>Palaiseau</cm:name> </cm:category> <cm:category> <cm:name>Temple</cm:name> </cm:category> <cm:category> <cm:name>Tours</cm:name> </cm:category> </cm:subcategories> </cm:category> <cm:category> <cm:name>Lignes de Business</cm:name> <cm:subcategories> <cm:category> <cm:name>ICC</cm:name> </cm:category> <cm:category> <cm:name>Online</cm:name> </cm:category> <cm:category> <cm:name>Paiement</cm:name> </cm:category> </cm:subcategories> </cm:category> <cm:category> <cm:name>Activites</cm:name> <cm:subcategories> <cm:category> <cm:name>Vocal</cm:name> </cm:category> <cm:category> <cm:name>Centre d'appel</cm:name> </cm:category> <cm:category> <cm:name>NFC</cm:name> </cm:category> <cm:category> <cm:name>Video</cm:name> </cm:category> <cm:category> <cm:name>WEB</cm:name> </cm:category> <cm:category> <cm:name>XMS</cm:name> </cm:category> </cm:subcategories> </cm:category> <!– Tags –> <cm:category> <view:acl> <view:ace view:access="ALLOWED"> <view:authority>GROUP_EVERYONE</view:authority> <view:permission>Contributor</view:permission> </view:ace> </view:acl> <cm:name>Tags</cm:name> </cm:category> </cm:subcategories> </cm:category> </cm:categories> </cm:category_root></view:view>
thank you for your help
Labels:
- Labels:
-
Archive
3 REPLIES 3
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2011 03:44 AM
Hello,
I don't believe what I'm going to say but it seems (and tell me if I am wrong) that the cm:name "General" is a reserved word. I thought I could may change it at will and in fact NO!
so I turned (see below) the "MBS" keyword onto "General" and it worked perfectly :
thx
I don't believe what I'm going to say but it seems (and tell me if I am wrong) that the cm:name "General" is a reserved word. I thought I could may change it at will and in fact NO!
so I turned (see below) the "MBS" keyword onto "General" and it worked perfectly :
<view:view xmlns:view="http://www.alfresco.org/view/repository/1.0" xmlns:sys="http://www.alfresco.org/model/system/1.0" xmlns:cm="http://www.alfresco.org/model/content/1.0"> <cm:category_root view:childName="cm:categoryRoot"> <cm:name>categories</cm:name> <cm:categories> <!– Software Document Classification –> <cm:category view:childName="cm:generalclassifiable"> <cm:name>[color=#FF0000]MBS[/color]</cm:name>[color=#FF0000] <!– CHANGE TO General –>[/color] <cm:subcategories>
thx

Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-17-2011 03:58 AM
Yes, sorry - there's a string replace going on to remove those first two levels.
That could be done better - I'll take a look.
Thanks,
Mike
That could be done better - I'll take a look.
Thanks,
Mike
Options
- Mark as New
- Bookmark
- Subscribe
- Mute
- Subscribe to RSS Feed
- Permalink
- Report Inappropriate Content
08-18-2011 09:59 AM
No problem Mike, maybe just update the doc about custom metadatas
thanks
thanks

