- Moderated by:
- Support
-
- rank:
-
Team Member
- registered:
- September 2006
- Status:
- online
- Posts:
- 1496
Check the Categories module init script.
It creates a lot of categories by default, it may help you
--
- Mateo T. -
Mis principios... son mis fines -
- rank:
-
Helper
- registered:
- June 2002
- Status:
- offline
- last visit:
- 09.09.08
- Posts:
- 288
Mateo,
I have this same question. I had already thought of looking at the category module's init file. The only problem is that the init file already knows the id and parentid fields as this is the initial filling of the database. When you add a parent category through $MyModule's init file, you don't have that parentid needed to add categories for your module. The category module also has all the path and ipath fields filled out as well.
I think this is what alverman was talking about.
edited by: cyber_wolf, Mar 26, 2008 - 08:30 AM
--
cyber_wolf
www.bkbsolutions.com - My Zikula module development site. -
- rank:
-
Helper
- registered:
- June 2002
- Status:
- offline
- last visit:
- 09.09.08
- Posts:
- 288
The migratecategories function of the News init script helps with this request. If I read alverman's question correctly, he wanted to include default categories in his init script when he created his module's root category in the category tree. This function in the News init script is a starting point.
--
cyber_wolf
www.bkbsolutions.com - My Zikula module development site.
