Ionic Logo

Ionic Blog Engine

You've got better things to do than build another blog

Add Butter to your Ionic app and get back to more interesting problems

Try ButterCMS free

"Best CMS on the market"



ButterCMS is an API-based CMS that integrates with Ionic in minutes. Use ButterCMS with Ionic to build CMS-powered apps quickly. Butter is great for blogs, dynamic pages, and more.

Above is quick video of integrating Butter's blog engine into an application.

Butter's Blog API slides right into our apps and helps avoid having yet another WordPress site.

Daniel, Founder of Collective Idea

All your requirements, solved

  • ButterCMS Feature Image Use main domain (for SEO)
  • ButterCMS Feature Image Friendly admin interface
  • ButterCMS Feature Image Upload images and media
  • ButterCMS Feature Image Edit slugs and meta tags
  • ButterCMS Feature Image Tag and categorize posts
  • ButterCMS Feature Image RSS/Atom Feeds
  • ButterCMS Feature Image Search
  • ButterCMS Feature Image Webhooks

Powerful admin interface

Integrates with Ionic

Our blog engine has a simple API and drop-in Ionic SDK.

Save development time

Save thousands of dollars worth of development time with our easy setup.

Gives you great SEO

Host your blog on your main domain and customize slugs and meta tags.

Try ButterCMS in your Ionic app

Setup in minutes

Official Ionic Guide



Integrating Butter into your Ionic app is dead simple. Here's a mini tutorial to get a feel for of setting up your blog home and blog post pages. For full an integration guide check out our Official Ionic Guide

To display posts we create a simple /blogroute in our app and fetch blog posts from the Butter API. See our API reference for additional options such as filtering by category or author. The response also includes some metadata we'll use for pagination.

To retrieve the blog posts using ButterCMS client, you can use the function butter.post.list({})

posts/posts.page.ts
import { Component, OnInit } from '@angular/core';
import {butterService} from '../../services/buttercms.service';
@Component({
  selector: 'app-posts',
  templateUrl: './posts.page.html',
  styleUrls: ['./posts.page.scss'],
})
export class PostsPage implements OnInit {

  constructor() { }
  posts: any;
  ngOnInit() {
    butterService.post.list({
                page: 1,
                page_size: 10
            })
            .then((res) => {
                console.log('Content from ButterCMS');
                console.log(res);
                this.posts = res.data.data;
            });
  }
}

To display the posts in a card layout, create the ionic page as shown below: posts/posts.page.html

<ion-header>
  <ion-toolbar>
    <ion-title>Posts</ion-title>
  </ion-toolbar>
</ion-header>

<ion-content *ngIf="posts">
<ion-card *ngFor="let post of posts">
  <ion-card-header >
    <img src="{{post.featured_image}}" height="100px"/>
    <ion-card-title>{{post.title}}</ion-card-title>
    <ion-card-subtitle>Published on: {{post.created|date:'MM/dd/yyyy'}}</ion-card-subtitle>

  </ion-card-header>

  <ion-card-content>
    {{post.summary}}<br>
    <ion-button href="/posts/{{post.url}}">Read more</ion-button>
  </ion-card-content>

</ion-card>
<ion-button href="/home">Back</ion-button>
</ion-content>

To display a complete post, you can use the butter.post.retrieve(<url>)method. See a full list of available post properties in our API reference.

posts/post/post.component.ts
import { Component, OnInit } from '@angular/core';
import { ActivatedRoute } from '@angular/router';
import {map, take} from 'rxjs/operators';
import {Observable} from 'rxjs';
import {butterService} from '../../../services/buttercms.service';
@Component({
  selector: 'app-post',
  templateUrl: './post.component.html',
  styleUrls: ['./post.component.scss'],
})
export class PostComponent implements OnInit {

  constructor(protected route: ActivatedRoute) {
    }

    protected slug$: Observable<any>;
    public post = {
        meta: null,
        data: null
    };

    ngOnInit() {
        this.slug$ = this.route.paramMap
            .pipe(
                map(params => (params.get('slug')))
            );

        this.slug$.pipe(
            take(1))
            .subscribe(slug => {
                butterService.post.retrieve(slug)
                    .then((res) => {
                    console.log(res.data);
                        this.post = res.data.data;
                    }).catch((res) => {
                    console.log(res);
                });
            });
    }

}

To render the single post, create the Ionic page as shown below: posts/post/post.component.html

<ion-header>
  <ion-toolbar>
    <ion-title *ngIf="post">{{post.title}}</ion-title>
  </ion-toolbar>
</ion-header>
<ion-content>

    <ion-img [src]="post.featured_image"></ion-img>
    <h1>{{post.title}}</h1>
    <span>Published on: {{post.created|date:'MM/dd/yyyy'}}</span>

    <div [innerHTML]="post.body"></div>
    
<ion-button href="/posts">Back</ion-button>
</ion-content>

That's it! The blog posts your created in Butter dashboard will immediately show in your app.

Try ButterCMS in your Ionic app

About ButterCMS

ButterCMS is an API-based, or "headless", CMS. We're a hosted service and we maintain all of the infrastructure. For more information on how we compare to a traditional CMS check out API-based CMS vs Traditional CMS.

How do you compare to Wordpress?

In short, we offer all the same easy-to-use editing capabilities of Wordpress but are significantly easier for developers to setup and maintain. This means you spend less time working on your CMS and more time focusing on things important to your business.

Learn more about how we're a wordpress alternative.

What's my blog going to look like?

Unlike CMS's you might be used to, we don't control or host any of your templates. The design of your blog (HTML + CSS) lives in your application along side the rest of your app. Your application calls our Blog Engine API to get the raw blog post content and then injects it into your own templates during rendering. This has many benefits including blog your instantly matching the rest of your site branding giving it a unique feel; not the cookie-cutter blog themes you'll experience with other CMS's.

Can I import my existing blog content?

Yep. To import content from another platform, simply send us an email.

What kind of database can I use?


No database required! We're a SaaS CMS or CaaS. You simply call our Content API from your app. We host and maintain all of the CMS infrastructure.

Can I host this?


No, we're a SaaS CMS or CaaS. You simply call our Content API from your app. We host and maintain all of the CMS infrastructure.

I have other questions


We're happy to help.

Chat with us

About Ionic

Ionic Framework is an open source UI toolkit for building performant, high-quality mobile and desktop apps using web technologies — HTML, CSS, and JavaScript — with integrations for popular frameworks like Angular and React.

Blog Engine for these technologies and more

Ruby, Rails, Node.js, Python, ASP.NET, C#, Flask, Django, Next.js, Go, PHP, React, Phoenix, Elixir, Angular, Vue.js, Gatsby.js, Pelican, Express.js, Flutter, Gridsome, Java, Spring, React Native, Ionic, Nuxt.js

Try Butter free for 30-days

Try ButterCMS in your Ionic app

Get started now

Sign up with Google Sign up with Github
or