Official widgets
Where the official widgets come from and how to read the catalogue.
On this page
The official widgets are the building blocks that Total.js publishes for CMS. This section lists all 43 widgets of the official catalogue, in groups.
Where the widgets come from
Each widget is one HTML file in the GitHub repository totaljs/cms-widgets, in the widgets folder. The file holds the code of the widget, its look, its settings form and the content that it adds to a page.
The catalogue is a list of the widgets with their identifier, name, author, preview image and the address of the file. It is published with the files at:
https://cdn.totaljs.com/cms/db.jsonYour browser downloads the catalogue when you open the Import widgets window, so you need internet access to install widgets. CMS keeps a copy of each widget that you install, so your website does not depend on the catalogue afterwards.
The files on the CDN and in the repository are published separately. At times the CDN serves an older file than the repository. The entries in this section describe the widgets that the Import widgets window installs.
Add widgets to your website
- Install the widgets that you need from Widgets > Import.
- Add them to a page in the visual editor and change their settings.
In the Import widgets window, a green check mark shows the widgets that you have installed. Click an installed widget again to install it once more: CMS replaces your copy with the file from the catalogue.
How to read an entry
| Part | What it tells you |
|---|---|
| Name and file | The name in CMS and the file in the repository. |
| Summary and description | What the widget shows and what you can change in the editor. |
| Parameters | The fields of its Widget settings window: the key, the default value and the label. |
Every widget also has the four options to hide it on large, medium, small or extra small displays. They are not repeated in the entries.
What you can change in the editor
Most widgets come with sample text and grey placeholder images. In the visual editor you replace them:
- Click a text and choose Edit to type your own.
- Click an image and choose Edit to upload or pick a picture. Many images have a fixed size, and CMS crops your picture to it.
- Click an icon and choose Edit to pick another icon.
- Some parts can be repeated: choose Duplicate to add another copy, such as one more item of a list, or Remove to delete one.
- Some widgets have areas that hold other widgets. Click the area and choose Add a widget.
To build widgets of your own, see Develop widgets.