AnsweredAssumed Answered

Adding custom categories

Question asked by dd090 on Mar 27, 2008
Latest reply on Oct 16, 2009 by emrbridge
Hi,

I want to add some custom categories to our existing alfresco application.
I would prefer to do this in a way that I can do this only once (I mean not via the admin gui) and not via an sql script which adds these in the database.

Is there any way to do this ?


I tried to add our custom categories to the categories.xml as a new child of cm:generalclassifiable but when i restart the application i do not see my new categories.
What am i doing wrong ?
Any help (or other ideas on how to do this) would be greatly appreciated.

An example of my categories.xml attempt to add new categories :


<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">
        <view:acl>
            <view:ace view:access="ALLOWED">
                <view:authority>guest</view:authority>
                <view:permission>Read</view:permission>
            </view:ace>
        </view:acl>
      <cm:name>categories</cm:name>
      <cm:categories>

         <!– Software Document Classification –>
         <cm:category view:childName="cm:generalclassifiable">
                <cm:name>General</cm:name>
            <cm:subcategories>
                <cm:category>
            <cm:name>Software Document Classification 2</cm:name>
            <cm:subcategories>
               <cm:category>
                  <cm:name>Software Descriptions</cm:name>
                  <cm:subcategories>
                     <cm:category>
                        <cm:name>Main Software Descriptions</cm:name>
                        <cm:subcategories>
                           <cm:category>
                              <cm:name>Short System Description</cm:name>
                           </cm:category>
                           <cm:category>
                              <cm:name>Requirement Description</cm:name>
                           </cm:category>
                           <cm:category>
                              <cm:name>Architecture Description</cm:name>
                           </cm:category>
                           <cm:category>
                              <cm:name>Implementation Description</cm:name>
                           </cm:category>
                           <cm:category>
                              <cm:name>Configuration Description</cm:name>
                           </cm:category>
                           <cm:category>
                              <cm:name>David Was Here</cm:name>
                           </cm:category>                           
                        </cm:subcategories>
                     </cm:category>
            </cm:subcategories>
             </cm:category>
            
            
         <!– DDS TAA clasifications –>
         <!– TODO DDS What about translations –>
         <cm:category>
                <cm:name>TAA</cm:name>
            <cm:subcategories>
                   <cm:category>

                  <cm:name>Onroerend Goed</cm:name>
                  <cm:subcategories>
                     <cm:category>
                        <cm:name>BasisAkte</cm:name>
                     </cm:category>
                     <cm:category>
                        <cm:name>Huurkontrakt</cm:name>
                     </cm:category>               
                  </cm:subcategories>
               </cm:category>                  
                   <cm:category>
                  <cm:name>Krediet</cm:name>
                  <cm:subcategories>
                     <cm:category>
                        <cm:name>Kredietopening</cm:name>
                     </cm:category>
                  </cm:subcategories>
               </cm:category>
                   <cm:category>
                  <cm:name>Familiale Akte</cm:name>
                  <cm:subcategories>
                     <cm:category>
                        <cm:name>Huwelijskontrakt</cm:name>
                     </cm:category>
                     <cm:category>
                        <cm:name>Testament</cm:name>
                     </cm:category>
                  </cm:subcategories>
               </cm:category>
                   <cm:category>
                  <cm:name>Vennootschap</cm:name>
                  <cm:subcategories>
                     <cm:category>
                        <cm:name>Oprichting vennootschap</cm:name>
                     </cm:category>
                  </cm:subcategories>
               </cm:category>                                                                                                                     
            </cm:subcategories>   
         </cm:category>

Outcomes