cancel
Showing results for 
Search instead for 
Did you mean: 

How to create groups and categories from module

tico
Champ in-the-making
Champ in-the-making
Hello you all !!

I have created the module-context.xml file to import spaces, js scripts, and other contents. That runs fine.

But my module needs specific groups and categories. I didnt find any doc on how to create groups and categories on module startup.

Any one to explain me the xml file format for groups and categories to be created on module startup, and what to be added in module-context.xml ?

Thanks and regards.
3 REPLIES 3

andy
Champ on-the-rise
Champ on-the-rise
Hi

You should be able to create these via import. See the category bootstrap. Creating groups via import should be similar to creating user by import. I think the RM module does this.

Andy

tico
Champ in-the-making
Champ in-the-making
Thanks Andy,

I have fixed my issue regarding groups. Unfortunately, I am not able to import categories. I have created the module-context.xml file to import users, groups, spaces,…. and categories.

The xml description of the bean (refering to spacesBootstrap importer) which import the categories requires a path key prop. I have no idea which path is it for categories to be imported.

Thanks and regards,

Eric.

tico
Champ in-the-making
Champ in-the-making