public static SiteModelNode DeployModel() { return(SPMeta2Model.NewSiteModel(site => { site .AddField(ArtFields.SpfWebUrl()) .AddContentType(ArtContentTypes.CustomAutoTitleCT(), contentType => { contentType .AddContentTypeFieldLink(ArtFields.SpfWebUrl()) ; }) .AddRootWeb(new RootWebDefinition(), RootWeb => { RootWeb .AddList(ArtLists.CustomAutoTitleList(), SpfList => { SpfList .AddContentTypeLink(ArtContentTypes.CustomAutoTitleCT()) .AddUniqueContentTypeOrder(new UniqueContentTypeOrderDefinition { ContentTypes = new List <ContentTypeLinkValue> { new ContentTypeLinkValue { ContentTypeName = ArtContentTypes.CustomAutoTitleCT().Name } } }) .AddListView(ArtViews.SettingsView()); }) .AddHostList(BuiltInListDefinitions.Catalogs.MasterPage, list => { var FolderPath = Path.Combine(ArtConsts.SystemPath, ArtConsts.Assets); if (Directory.Exists(FolderPath)) { Extentions.FillApplytoFile(); ModuleFileUtils.LoadModuleFilesFromLocalFolder(list, FolderPath); } }) ; }) .AddUserCustomAction(ArtActions.ListSettings()) .AddUserCustomAction(ArtActions.FolderSettings()) ; })); }