create published document API

hadi tag asked on March 9, 2015 08:01

hi

i want create published document with kentico api in my webpart.

How can I do it?

i use this code: TreeNode node = TreeNode.New("custom.Article", provider); ... node.Insert(parent, true);

please help me...

Recent Answers


Petar Kozjak answered on March 9, 2015 11:15

Hi,

I don't know are you aware that Kentico can generate this kind of example code. Go to Development > API Examples > Content management > Page Basics or Workflow basics. In there try Create Page or Create example object.

I think this will help you on long run.

3 votesVote for this answer Mark as a Correct answer

   Please, sign in to be able to submit a new answer.