This project is read-only.

Creating Containers

Sep 7, 2008 at 6:33 PM
The guides on n2cms were great, but It did not show you how to create a container.

I understand how to associate an attribute with a container name, but I get an error thrown saying I was referencing a container that doesn't exist.
Sep 7, 2008 at 9:23 PM
You can add a "contianer" as an attribute to the class, e.g. (namespace N2.Web.UI):

[TabPanel("siteArea", "Site", 70, AuthorizedUsers = new string[] { "admin" }, AuthorizedRoles = new string[] { "Administrators" })]
[FieldSet(AbstractStartPage.LayoutArea, "Layout", 75, ContainerName = AbstractStartPage.SiteArea)]
public class MyClass : ContentItem...