New custom module using Thunder

Posted by Community Admin on 04-Aug-2018 16:43

New custom module using Thunder

All Replies

Posted by Community Admin on 18-Sep-2012 00:00

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

Posted by Community Admin on 18-Sep-2012 00:00

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.

This thread is closed