This project is read-only.

New module Position set to AsideSecond but diplaying in the content zone only

Topics: Customizing Orchard, Writing modules
Apr 3, 2013 at 4:01 PM
I have created a custom module that has to display content on the right hand side of the page
The content part gets created and and the contents are displayed but on content zone and not on AsideSecond..

public int UpdateFrom6()
          builder => builder.WithField("SideBarContent", fieldBuilder => fieldBuilder.OfType("TextField")
              .WithSetting("TextFieldSettings.Flavor", "html")
              .WithLocation(new Dictionary<string, ContentLocation> { { "SideBarContent", new ContentLocation { Zone = "AsideSecond", Position = "25" } }, })));

        return 7;
Apr 3, 2013 at 4:15 PM
Interesting, I haven't seen this method of placing shapes before. Is this new? The way I've been doing it is in, pushing shapes into specific zones.
Apr 3, 2013 at 4:26 PM
Edited Apr 3, 2013 at 4:26 PM
Actually ,a field called sidebarcontent is added to the content part when i build the project and when i add the sidebarcontent part to a page content type then i have 2 fields
  1. sidebar with html flavor(probably from updatefrom6 method)
    2.sidebar text field which comes from editor template that doesnt have html flavor
The sidebar text field gets positioned on the asidesecond zone that takes position from
I am trying to build sidebar module that has html flavor.