An Ionic CMS like no other

Meet the headless Ionic CMS that integrates with your app using a straightforward API. Smooth, simple, and tasty content integration — that’s Butter.

Posted on November 27, 2023

Intuitive admin interface

So easy to use. So easy to customize. You’re going to love the content you build better with ButterCMS.

Handy integration with Ionic

Our Ionic CMS has a simple content API and drop-in Ionic SDK that makes the magic happen in minutes, not hours.

A truly zero-maintenance solution

With ButterCMS, you’ll never worry about security upgrades, hosting, or performance again.

Powerful CMS for Ionic. Zero headache.

Drop our API-based CMS into your Ionic app in minutes. 

ButterCMS provides a component-based CMS and content API for Ionic apps. Use ButterCMS to enable dynamic content in your apps for page content, blogs, and anything else. Most customers get our Ionic CMS set up in one hour or less. 

That leaves plenty of time for you and your marketing team to do what you do best: create killer apps with killer content. 

Play video

See how Butter’s API enables you to compose flexible page layouts and easily reorder components, without a developer.

G2 crowd review award G2 crowd review award G2 crowd review award G2 crowd review award G2 crowd review award G2 crowd review award G2 crowd review award G2 crowd review award G2 crowd review award G2 crowd review award G2 crowd review award G2 crowd review award

“Best CMS on the market”

headshot of Hampton Catl

After shopping the market, it was clear that ButterCMS was the perfect choice. It allows our developers to build powerful components and makes it easy for our marketing team to drive a better customer experience. Hampton Catlin Creator of Sass and Haml

Built to make content marketing easy

ButterCMS is the best headless cms for Ionic for a simple reason: Ionic developers can build solutions that marketing people love. Our API allows your content gurus to quickly spin up high-converting, dynamic landing pages, SEO pages, product marketing pages, and more, all using simple drag-and-drop functionality.

  • SEO landing pages
  • Customer case studies
  • Company news & updates
  • Events + webinar pages
  • Education center
  • Location pages
  • And more...

The simplest Ionic CMS you'll find

Our simple setup saves you time and money. Take us for a spin to see for yourself!

headshot of LUKE GARDNER

It's the epitome of plug-and-play simplicity for content creators. It does exactly what I need it to. LUKE GARDNER, CONTENT SPECIALIST, PRINTAVO

Fast integration with any Ionic app

Our mission was to make it easy to integrate Butter with your existing Ionic app in minutes. It’s so simple! To demonstrate, here’s a mini tutorial to give you a feel for the process of adding marketing pages to your Ionic app.

Of course, you can also use our Collections to do advanced content modeling. For a full integration guide, check out our Official Guide for the ButterCMS Ionic API client.

Play video

See how easily you can integrate the ButterCMS Pages API with your Ionic app.

Seamless Ionic components

Empower your marketing team with dynamic landing pages that align perfectly with your Ionic components. 

Components are the essential building blocks of any Ionic app, and ButterCMS handles them with ease. 

Our drag and drop interface makes it simple to structure your content to match existing Ionic components and to create new reusable components whenever you need them.

One Ionic CMS with everything you need

There’s a reason so many developers are choosing a headless Ionic CMS. It’s easy to set up, offers flexible, customizable content modeling, and gives you access to our full Ionic API.

  • Custom page types
  • Custom content modeling
  • CDN for assets
  • Webhooks
  • Testing environment
  • Customer case studies
  • Location pages

ButterCMS saves you development time

Most customers get our Ionic CMS up and running in less than an hour. Try it yourself!

headshot of DILLON BURNS

Simple as can be, with powerful features and great customer support. DILLON BURNS, FRONT END DEVELOPER, KEYME

How to integrate ButterCMS into your Ionic application

Just follow the simple steps below to complete the integration and begin creating pages with Butter. Be sure to check out our full guide to creating pages using the ButterCMS Ionic API.

First you would set up a new Customer Case Study page type in Butter and create a page. With your page defined, the ButterCMS API will return it in JSON format like this:

{
    "data": {
        "slug": "acme-co",
        "fields": {
            "facebook_open_graph_title": "Acme Co loves ButterCMS",
            "seo_title": "Acme Co Customer Case Study",
            "headline": "Acme Co saved 200% on Anvil costs with ButterCMS",
            "testimonial": "<p>We've been able to make anvils faster than ever before! - <em>Chief Anvil Maker</em></p>\r\n<p><img src=\"https://cdn.buttercms.com/NiA3IIP3Ssurz5eNJ15a\" alt=\"\" caption=\"false\" width=\"249\" height=\"249\" /></p>",
            "customer_logo": "https://cdn.buttercms.com/c8oSTGcwQDC5I58km5WV",
        }
    }
}

To integrate this into your app, simply make a call to ButterCMS APIs using the ButterCMS service. Place this call in the ngOnInit hook in home/home.page.ts:

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

  ngOnInit() {
    butterService.page.retrieve('*', 'home-page')
      .then((res) => {
        console.log(res.data.data);
        this.page = res.data.data;
      }).catch((res) => {
      console.log(res);
    });
  }

}

To render the data, create the ionic page. Here's how the home/home.page.html might look like:

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

<ion-content>
<ion-card *ngIf="page">
  <ion-card-header >
    <img src="{{page.fields.featured_image}}" height="200px"/>
    <ion-card-subtitle>{{page.fields.subtitle}}</ion-card-subtitle>
    <ion-card-title>{{page.fields.title}}</ion-card-title>
  </ion-card-header>

  <ion-card-content>
   <div [innerHTML]="page.fields.description"></div>
  </ion-card-content>
</ion-card>
<ion-button href="/posts">View Posts</ion-button> <ion-button href="/customers">View Customers</ion-button>
</ion-content>

Get all page content of specific type. For instance, customers for the case study in customers/customers.page.ts:

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

  ngOnInit() {
  butterService.page.list('customer_case_study')
      .then((res) => {
        console.log(res.data.data);
        this.customers = res.data.data;
      }).catch((res) => {
      console.log(res);
    });
  }

}

The Ionic page to render the customer list can be written as below in customers/customers.page.html:

<ion-header>
  <ion-toolbar>
    <ion-title>Customer Testimonials</ion-title>
  </ion-toolbar>
</ion-header>

<ion-content *ngIf="customers">
<ion-card *ngFor="let customer of customers">
  <a href="/customers/{{customer.slug}}">
  <ion-card-header>
    <img src="{{customer.fields.customer_logo}}" height="100px"/>
    <ion-card-title>{{customer.fields.seo_title}}</ion-card-title>
  </ion-card-header>

  <ion-card-content>
    <div [innerHTML]="customer.fields.headline"></div>
  </ion-card-content>
</a>
</ion-card>
<ion-button href="/home">Back</ion-button>
</ion-content>

Viewing specific page of a specific type could be done as shown below: customer component that displays the details of the customer in customers/customer/customer.component.ts.

import { Component, OnInit } from '@angular/core';
import {butterService} from '../../../services/buttercms.service';
import {ActivatedRoute} from '@angular/router';
import {map, take} from 'rxjs/operators';
import {Observable} from 'rxjs';
@Component({
  selector: 'app-customer',
  templateUrl: './customer.component.html',
  styleUrls: ['./customer.component.scss'],
})
export class CustomerComponent implements OnInit {
  customer: any;
  slug$: Observable<any>;
  constructor(private route: ActivatedRoute) { }

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

        this.slug$.pipe(
            take(1))
            .subscribe(slug => {
                butterService.page.retrieve('customer_case_study', slug)
            .then((res) => {
              console.log(res.data.data);
              this.customer = res.data.data;
            }).catch((res) => {
            console.log(res);
          });
        }
            );
      }
}

To render the customer details, create Ionic page in customers/customer/customer.component.html as shown below:

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

    <ion-img [src]="customer.fields.customer_logo"></ion-img>
    <h1>{{customer.fields.seo_title}}</h1>
    <div [innerHTML]="customer.fields.testimonial"></div>
    
<ion-button href="/customers">Back</ion-button>
</ion-content>

That's it! If you browse to your homepage you'll see your homepage populated with the content you created in Butter.

Get Started for Free

Try Butter free for 14 days

See for yourself what makes Butter the best Ionic CMS out there. Click the button below to sign up for your free 14-day trial.