0
votes

I want to get all categories in alfresco. What i want to do is a function that return a tree of all categories in the repository (may be recursively) and display it in category managment page.

I'd like to display the tree expanded by default (using Yahoo javascript library)

Thank you in advance.

I'm using alfresco 5.0.d

1
Isn't this what the existing category management page show you?{host}/share/page/console/admin-console/category-manager - Stefan De Laet
yes but i want to list all categories without any clic. - soung

1 Answers

0
votes

You ll want to change the category manager page. The code for the category manager (front end javascript, Yahoo js library) is in

alfresco\tomcat\webapps\share\components\console\category-manager.js

Css styling is in same dir

The back end webscript that provides the data is in

alfresco\tomcat\webapps\share\WEB-INF\classes\alfresco\site-webscripts\org\alfresco\components\console\category-manager.get.js

The freemarker template providing html can be found in the same directory.