cancel
Showing results for 
Search instead for 
Did you mean: 

Additions to categories.xml don't show up in webclient

alexr
Champ in-the-making
Champ in-the-making
I added  the entries below to the categories.xml file in the folder:
C:\alfresco\tomcat\webapps\alfresco\WEB-INF\classes\alfresco\bootstrap
Then I restarted the alfresco application, however when I start the action to attach a category to content, I only am presented with the original categories (i.e. Software Document Classification, Languages, Regions).
What am I forgetting, doing wrong here?

Kind regards,

Alex   Smiley Very Happy


         <!– Dogs –>
         <cm:category view:childName="cm:generalclassifiable">
            <cm:name>Retriever</cm:name>
            <cm:subcategories>
               <cm:category>
                  <cm:name>Labrador</cm:name>
                  <cm:subcategories>
                     <cm:category>
                        <cm:name>Black Labrador Retriever</cm:name>
                     </cm:category>
                     <cm:category>
                        <cm:name>Chocolate Labrador Retriever</cm:name>
                     </cm:category>
                     <cm:category>
                        <cm:name>Golden Labrador Retriever</cm:name>
                     </cm:category>
                  </cm:subcategories>
               </cm:category>
            </cm:subcategories>
         </cm:category>

7 REPLIES 7

davidc
Star Contributor
Star Contributor
Hi Alex,

The bootstrap data is only loaded when the Repository is first started i.e. the first time after install.  So, for your changes to take effect, you need to use a clean database; either clean out your existing schema (named alfresco by default) or point to a new one (by changing the database values in repository.properties).

We will support dynamic changing of categories through the API, UI and admin tools sometime in the future (after the Oct. release).

It wouldn't be too difficult to write a utility that deleted the root categories from an existing repository and then reloaded them from the categories.xml; using a combination of the NodeService to delete and the ImporterService to re-load.  See the api wiki page at http://www.alfresco.org/mediawiki/index.php/Alfresco_Content_Management_Java_API

alexr
Champ in-the-making
Champ in-the-making
Hi David,

Thank you for you help. I will have a look at the WiKi pages and I am looking forward for the October release of Alfresco to see how things will evolve.

Kind regards,

Alex

tiofelix
Champ in-the-making
Champ in-the-making
I've got problems defining categories.xml. I define a lot of them (about 180..) but now, I can not define any more and i don't know why, this error is shown:

ERROR [org.springframework.web.context.ContextLoader] Context initialization failed
org.alfresco.error.AlfrescoRuntimeException: Bootstrap failed
   at org.alfresco.repo.importer.ImporterBootstrap.bootstrap(ImporterBootstrap.java:427)



Caused by: org.alfresco.service.cmr.view.ImporterException: Failed to import package at line 16; column 16 due to error: Node without parents does not have root aspect: workspace://SpacesStore/45972028-43c2-11db-a7a5-65f25d04c6b3


Some idea?? Thanks

tiofelix
Champ in-the-making
Champ in-the-making
I thought about if there is a maximun of new entries… maximun number of categories??? can it be possible?? i've got no idea, any help will be very useful. Thanks.

serv
Champ in-the-making
Champ in-the-making
Hi !

I'm using Alfresco Community 2.0. Is there a possibility in this version to override the boostrap data without having to clean the database ?

Cheers

Servane

gilles
Champ in-the-making
Champ in-the-making
I also want to load categories whithout having to clean the DB. Using 2.1 Community.

Is there a way to make categories multilingual?

Thanks in advance,                 Gilles.

robertoroberto
Champ in-the-making
Champ in-the-making
I have the same problem.  I want to dinamically load categories (updating categories.xml)whithout having to clean the DB.

is It possible?