AnsweredAssumed Answered

Custom Categories at bootstrap

Question asked by bbougon on Aug 16, 2011
Latest reply on Aug 18, 2011 by bbougon
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 :


<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

Outcomes