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

Forums / Developing with Sitefinity / New custom module using Thunder

New custom module using Thunder

2 posts, 0 answered
  1. Jacques
    Jacques avatar
    427 posts
    Registered:
    28 Jun 2007
    18 Sep 2012
    Link to this post
    I've added a new custom module called Test (using Sitefinity Thunder). It creates two classes and without changing too much when I run Sitefinity the module is installed.

    My install method looks like this:
    public override void Install(SiteInitializer initializer)
           {
               App.WorkWith().
                   Module(MyTestModule.ModuleName, initializer.PageManager).Install().
                       CreateModulePage(Guid.NewGuid(), "MyTestModule").
                           SetOrdinal(1).
                           ShowInNavigation().
                           SetTitle("MyTestModule").
                           SetHtmlTitle("MyTestModule").
                           SetDescription("MyTestModule").
                           SetUrlName("MyTestModule").
                           PlaceUnder(CommonNode.Content).
                           AddControl(new Literal() { Text = "<h1 class=\"sfBreadCrumb\">Module MyTestModule Installed</h1>", Mode = LiteralMode.PassThrough });
           }

    1. It places the new admin menu under Content > Classification of Content, which I didn't want, I just want it under Content?
    2. Where do you go from here???
    2.1. How do I added a list view page
    2.2 How do I add the edit page

    I've looked at the testimonials example in the SDK but that uses a very different set of code, which didn't work for me.

    Thanks,
    Jacques
  2. Jacques
    Jacques avatar
    427 posts
    Registered:
    28 Jun 2007
    18 Sep 2012
    Link to this post
    Quick follow up to my post:
    I restarted the app again and for some reason the module was removed and now the SystemConfig.config shows an error for this module.
2 posts, 0 answered