Create a content block with the Native API

Use the code example below to create a content block and to set its ID, Title, Name, Content, and Author with the Native API.

NOTE: In the code example, the ID argument is assigned to the master version of the content block.

You must first initialize the ContentManager. You create the content block using the CreateContent method. Then, you set the properties of the content block. To publish the page, you use the Publish method of the manager. Finally, you save the changes.

Create a content block with the Native API

Want to learn more?

Sign up for our free beginner training. Boost your credentials through advanced courses and certification.
Register for Sitefinity training and certification.

Was this article helpful?