---
title: Embedded content
project: CMS
version: 1.0
section: widgets
language: en
license: MIT
url: https://totaljs.es/docs/cms/1-0/widgets/embedded-content/
updated: 2026-11-20T06:51:42.966Z
---

# Embedded content

> Widgets that add your own HTML, content from another address, a UI Builder app or Bufferwall posts.

Widgets that add content from another source: your own HTML code, content loaded from an address, a UI Builder app or posts from Bufferwall. In the visual editor these widgets show only a label. Use **Preview** to see the result on the public page.

![A UI Builder dashboard shown by the UI Builder widget on a public page](/files/Jaq7Xl3G161f.webp)

## API

### code.html

Type: `component`

Your own HTML code, placed in the page as you write it.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `name` | `String` | no | `Summary` | **Name**: a label that identifies the code in the editor. |
| `code` | `String` | no |  | **Custom code**: the HTML code. |

Write the code in **Custom code**. On the public page the code replaces the widget completely, so CMS adds no wrapper or margins around it. In the editor the widget shows the text of **Name**.

### importer.html

Type: `component`

Loads HTML from an address into the page in the browser of the visitor.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `url` | `String` | no |  | **URL address**: the address of the HTML to load. |

The widget adds a `ui-import` element with your address, and the UI library of the layout loads the content after the page opens. Use an address that returns a part of a page, such as an HTML file in **Files**: a full page of your website would bring its whole layout with it.

### uibuilder.html

Type: `component`

Shows an app made with Total.js UI Builder.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `url` | `String` | no | `https://cdn.componentator.com/uibuilder/demo/render/dashboard.json` | **URL address**: the address of the JSON file of the UI Builder app. |

The default address is a demo dashboard. The UI library of the layout loads and draws the app in the browser of the visitor.

### bufferwall.html

Type: `component`

A grid of the latest posts from a Bufferwall account.

| Parameter | Type | Required | Default | Description |
| --- | --- | --- | --- | --- |
| `token` | `String` | no |  | **Bufferwall token**: your token. When it is empty, CMS uses the `bufferwall` variable. |
| `detail` | `String` | no | `https://bufferwall.com/posts/{0}/` | **URL for detail**: the address of a post, where `{0}` is the identifier of the post. |
| `layout` | `String` | no | `col-sm-3` | **Layout**: `col-sm-3` for 4 posts per row or `col-sm-4` for 3 posts per row. |
| `count` | `Number` | no | `4` | **Count**: how many posts to show. |
| `tag` | `String` | no |  | **Tag**: shows only the posts with this tag. |

The server downloads the posts from the Bufferwall service each time it builds the page, and shows each one with its picture, name, summary and date. You need a Bufferwall token. When you install the widget, CMS creates the variables `bufferwall` (with the text `YOUR_BUFFERWALL_TOKEN`) and `swipecontent`. Enter your token in the settings or as the value of the `bufferwall` variable. If the service does not answer within two seconds, the widget shows nothing.
