Creating a form Widget

Apr 21, 2012 at 3:00 AM

What more needs to be done besides adding the following to migrations.cs in order to create form widgets?

public int UpdateFrom1()
        {
           // Create a new widget content type with our form
                ContentDefinitionManager.AlterTypeDefinition("CustomFormWidget", cfg => cfg
                    .WithPart("CustomFormPart")
                    .WithPart("SubmissionLimitPart")
                    .WithPart("ReCaptchaPart")
                    .WithPart("WidgetPart")
                    .WithPart("CommonPart")
                    .WithSetting("Stereotype""Widget"));
            return 2;
        }

Cheers,
JV