Home/Recipes/Building experiences visually with external content
Building experiences visually with external content
This recipe shows how to connect to any external system with API for content without having to write any code and start building personalized experiences visually.

Introduction

This recipe covers how to use Uniform to connect to an external system with content you want to use in Uniform, without having to write any code. In this example, reading content from the external system is accomplished using a REST endpoint.
The external content source in this example is a WordPress blog. You will make posts from the blog available in Uniform.
This recipe uses WordPress as an example, but it is not about WordPress specifically. For more details on how to use WordPress with Uniform, we have a lesson on our Connect portal.
This video walks you through the process of incorporating content from a WordPress site into a page built in Uniform.

Step 1: Create the Data Source

  1. In Uniform, navigate to Data Types.
  2. Click the button Add data type.
  3. For Data Source, select HTTP Request > Create new....
  4. Enter the following values:
    1. Base URL: https://public-api.wordpress.com/rest/v1.1/sites/227813160
    2. Name: WordPress Site
    3. Public ID: wordpressSite
  1. Click Save

Step 2: Create the Data Type

  1. Under the section Request settings, next to the dropdown with GET selected, enter the following value: /posts/
  2. Enter the following values for Name: WordPress Posts and wordpressPosts for Public ID
  3. Click Save.

Step 3: Use the Data Type

In order to use the data type, you must create a Data Resource. These can be created in a number of places, depending on what you are trying to accomplish:
  • Component Patterns: A business user can use content from the external system in the specific component type.
  • Compositions: A business user can use content from the external system on parameters on the composition, or any of the components in the composition.
  • Content Entry Patterns: A business user can use content from the external system on fields on a specific content type.

Experience what you can deliver with Uniform today

Schedule Demo