1-888-365-2779
+1-888-365-2779
Try Now
More in this section

Forums / Developing with Sitefinity / Pre populate a Module with items on Install

Pre populate a Module with items on Install

2 posts, 0 answered
  1. Kristian
    Kristian avatar
    214 posts
    Registered:
    03 Jun 2010
    07 Jul 2011
    Link to this post
    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.
  2. Kristian
    Kristian avatar
    214 posts
    Registered:
    03 Jun 2010
    08 Jul 2011
    Link to this post
    I put it in ConfigManager_Executed method after the reset and it works now in case anyone else is interested.
2 posts, 0 answered