Hello Kentico
I am trying to save documents but i get an errors that is not consistent with the TreeNode information
TreeProvider Tree = new TreeProvider(MembershipContext.AuthenticatedUser); TreeNode AuthorRoot = Tree.SelectNodes().Path("/authors").OnCurrentSite().Culture("en-us").FirstObject; // this exists AuthorRoot, see image below TreeNode AuthorPage = TreeNode.New("CMS.Author", this.Tree); AuthorPage.DocumentName = authorName; AuthorPage.DocumentCulture = "en-us"; // AuthorPage.DocumentPageTemplateID = 26076; // Creates the Author page AuthorRoot.Insert(AuthorPage);
I get these error
I know there is a site associated with the tree node, but the save is not recognizing it
Any ideas?
Thanks
AuthorPage.Insert(AuthorRoot)
Thanks Peter
I can't believe I had them backwards
Please, sign in to be able to submit a new answer.