9/18 | Validate feature ideas earlier with AI-driven prototypes

What are best AI tools? Take the State of AI survey

Builder.io
Builder.io
Contact sales

9/18 | Validate feature ideas earlier with AI-driven prototypes

What are best AI tools? Take the State of AI survey

Builder.io
Builder.io
< Back to blog

Creating a Blog

Create a drag-and-drop editable blog with Next.js

July 22, 2022

Written By Aziz Abbas

Creating your blog with Builder empowers your editors to build exciting blog articles in an intuitive drag-and-drop UI.

Setup

If you'd like to start with a pre-configured space and codebase, check out the full example on GitHub. This article goes through setting up a blog from scratch.

If you don't have one already, create an account over at builder.io/signup. It's free!

In this example we are also assuming you are a developer and will be connecting this blog to a custom website or app.

Creating a Blog article model

First, we need to make a model for our blog articles. Here's the how-to:

  1. Go to builder.io/models.
  2. Make a new model by clicking the + Create Model button and choosing Section.
  3. Name the model Blog article.
  4. Click the Create button.

5. Next, add some fields. Lots of blog posts usually include the following fields:

The following video shows how to add each of these fields to the model and specify each type. You can define the options of each field, such as default values or whether the field is required, to meet your particular needs. In practice, you might also want to fill in the Helper Text field so editors know the purpose of each field:

The image below shows a still screenshot of these fields in the Blog article model:

Tip: Consider marking some of those options, such as Title, Handle, Image, and Date required so the editor must enter those values to publish.

Connecting the model to a site

Now, you can query your Blog Articles using our Javascript SDK, Content API, or GraphQL API.

Displaying an article

Next, let's render an individual article.

Setting up preview by handle

Once you get the code setup locally, let's connect your local site to the Visual Editor. This will allow for accurate previewing and editing as well as using your custom components directly in the editor.

  1. Go to Models.
  2. Open the Blog Article model.
  3. Click on the code icon, < > to the right of the Preview URL field. This opens a code editor with comments giving more context on this feature.
  1. Use the code below which tells the editor to show the page on the blog/[handle], then save model changes.

Tip: For more detailed instructions on using a preview URL, check out Editing and Previewing Your Site.

Create a Blog Article

Now you can go to builder.io/content, click + New Entry and choose Blog Article. You should now see the drag and drop editor loaded right onto your local site.

You can now create articles with drag-and-drop and publish them when you're ready.

To create a blog article content entry, do this:

  1. Go to Content where you should see the Blog article model in the list on the left.
  2. Click the + New button and select Blog article. The recommended fields we added in the first section of the tutorial are in the Options tab, ready for you to fill out.
  3. Add some content and publish!

When you publish your site updates to production, make sure to update your editing URL to be a production URL, such as https://your-site.com/blog/_ and no longer localhost so other team members can create blog posts.

And that's it!

We've showed several key features here such as custom models, custom fields, and connecting to your website

If you have any questions, ask in our forum!

Share

Twitter
LinkedIn
Facebook
Share this blog
Copy icon
Twitter "X" icon
LinkedIn icon
Facebook icon

Visually edit your codebase with AI

Using simple prompts or Figma-like controls.

Try it nowGet a demo

Design to Code Automation

A pragmatic guide for engineering leaders and development teams


Continue Reading
design9 MIN
How to generate (actually good) designs with AI
September 17, 2025
AI9 MIN
7 Levels of Context Engineering for Designers
September 16, 2025
Design to Code8 MIN
Git Branching for Designers
September 11, 2025

Product

Visual CMS

Theme Studio for Shopify

Sign up

Login

Featured Integrations

React

Angular

Next.js

Gatsby

Resources

User Guides

Developer Docs

Forum

Blog

Github

Get In Touch

Chat With Us

Twitter

Linkedin

Careers

© 2020 Builder.io, Inc.

Security

Privacy Policy

Terms of Service

Get the latest from Builder.io

By submitting, you agree to our Privacy Policy

  • Fusion

  • Publish

  • Product Updates

  • Design to Code

  • Headless CMS

    Multi-Brand CMS

  • Landing Pages

  • Web Apps

  • Prototypes

  • Marketing Sites

  • Headless Commerce

  • Documentation

  • Fusion Docs

  • Publish Docs

  • Blog

  • Webinars

  • Guides

  • Case Studies

  • Community Forum

  • Partners

  • Affiliate Program

  • CMS Integrations

  • CMS Blueprints

  • Glossary

  • Figma to Code Guide

  • Headless CMS Guide

  • Headless Commerce Guide

  • Composable DXP Guide

  • About

  • Careers

  • Contact Sales

Security

Privacy Policy

SaaS Terms

Compliance

Cookie Preferences

YouTube icon
Github icon
Blsky Icon
Twitter "X" icon
LinkedIn icon
Feed Icon
Gartner Cool Vendor 2024