Pre populate a Module with items on Install

Posted by Community Admin on 04-Aug-2018 21:00

Pre populate a Module with items on Install

All Replies

Posted by Community Admin on 07-Jul-2011 00:00

Ok so I know how to create items easy,

var manager = new ProductsManager();
            var application = manager.CreateProduct();
 
 
            application.Title = "My Product";
  application.SaveChanges();

but where do i put this? I tried the end of the install method, but it errors out because not all of the permissions are setup yet.

Posted by Community Admin on 08-Jul-2011 00:00

I put it in ConfigManager_Executed method after the reset and it works now in case anyone else is interested.

This thread is closed