--- title: What is Total.js CMS project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/overview/ updated: 2026-11-19T04:30:14.166Z --- # What is Total.js CMS > What Total.js CMS does, its main parts and what to read next. Total.js CMS is a content management system that you install on your own server. You build and run a website from your browser: compose pages visually, manage menus and files, and follow your visitors on a dashboard. The app runs on Node.js and keeps its data in files, so you don't need to install a database. ## Main parts | Part | What it does | |---|---| | **Pages** | The content of your website, each at its own URL address | | **Layouts** | The frame around a page: header, menu, footer and the area for content | | **Widgets** | Ready-made blocks, such as a headline or a picture, that you place on a page | | **Navigation** | The menus of your website | | **Redirects** | Send visitors from one URL address to another | | **Files** | Pictures and documents that you upload | | **Variables** | Short values that you reuse on every page | | **Dashboard** | Visitor statistics | ## What to read next 1. Check the [requirements](../requirements/). 2. [Install from source](../install-npm/) or [install with Docker](../install-docker/). 3. Complete the [first sign-in](../first-sign-in/) straight away. 4. [Build your first website](../first-website/). --- title: Requirements project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/requirements/ updated: 2026-11-19T04:30:19.172Z --- # Requirements > What you need to install and use Total.js CMS. Total.js CMS needs very little: Node.js on the server and a modern browser with internet access. ## On the server - **Node.js** with `npm`. The official Docker image uses Node.js 24, so that version is a good choice. - **No database.** The app stores everything in files in its `databases` folder. ## In your browser The admin loads its styles and scripts from a public content network, so your browser needs internet access while you work in the admin. The widget catalog also comes from the internet. ## Next step [Install from source](../install-npm/) or [install with Docker](../install-docker/). --- title: Install from source project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/install-npm/ updated: 2026-11-19T04:30:14.166Z --- # Install from source > Download Total.js CMS, install it with npm and start it. Installing from source gives you every screen described in this documentation. ## Install the app **1.** Download the source code: ```bash git clone https://github.com/totaljs/cms.git ``` **2.** Open the folder and install the dependencies: ```bash cd cms npm install ``` ## Start the app Start the app on port 8000: ```bash npm run start ``` To choose the port yourself, start it directly: ```bash node index.js 8000 ``` On a production server, add `--release`: ```bash node index.js 8000 --release ``` Open `http://localhost:8000/` in your browser. The first start takes you to the sign-in page. ## Next step Complete the [first sign-in](../first-sign-in/) straight away. --- title: Install with Docker project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/install-docker/ updated: 2026-11-19T04:30:14.166Z --- # Install with Docker > The official commands to run Total.js CMS from its Docker image. Total.js publishes an official Docker image of the CMS. Use these commands to download and start it: ```bash docker pull totalplatform/cms docker run -p 8000:8000 totalplatform/cms ``` Open `http://localhost:8000/` in your browser, then complete the [first sign-in](../first-sign-in/) straight away. ## What to expect from the image This documentation describes the app [installed from source](../install-npm/). The image is built separately, so its screens can differ. Check the sidebar of your admin to see which screens your installation has. --- title: First sign-in project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/first-sign-in/ updated: 2026-11-19T04:30:14.166Z --- # First sign-in > Sign in with the generated account and protect it straight away. The first time the app starts, it creates one administrator account with a random user name and password. > **Sign in straight away.** Until the first sign-in, the sign-in page shows this account to anyone who opens it. Do this before you share the address of your server. ## Sign in 1. Open `/admin/` on your server, for example `http://localhost:8000/admin/`. 2. Find the **Default account** box with the generated **User name** and **Password**. 3. Click **Fill in the form**. 4. Click **Sign in**. After this first sign-in, the box disappears for good and the sign-in page shows only the form. ![The sign-in page with the User name and Password fields and the Sign in button](/files/Janst72M861f.webp) ## Choose your own credentials The generated password is not shown again, so replace it now. Follow the steps in [Change your credentials](../change-credentials/). ## Next step Get to know [the admin interface](../admin-interface/). --- title: The admin interface project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/admin-interface/ updated: 2026-11-19T04:30:14.166Z --- # The admin interface > Find your way around the header, the sidebar and the Home screen. Every screen of the admin shares the same frame: a header at the top and a sidebar on the left. ## Header - The **globe** button at the top left opens your public website. - The **breadcrumb** shows where you are. Click **Home** to open the Home screen. - The buttons of the current screen, such as **Create** and **Refresh**, are on the right. - The **account** button at the far right opens the menu with **Change credentials** and **Logout**. ## Sidebar The sidebar lists the screens: **Dashboard**, **Pages**, **Layouts**, **Navigation**, **Redirects**, **Posts**, **Widgets**, **Files**, **Variables** and **Settings**. ## Home screen The Home screen shows a tile for each screen, plus three tiles for your whole site: **Backup**, **Restore** and **Clear**. ![The Home screen with a tile for each screen and the Backup, Restore and Clear tiles](/files/Janssm22861f.webp) Read [Back up your site](../backup/) before you use these tiles. --- title: Build your first website project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/first-website/ updated: 2026-11-19T04:30:14.166Z --- # Build your first website > Go from an empty installation to a published page with a menu. This guide takes you from an empty installation to a home page with a menu. A new installation has no widgets, layouts or pages, so you create them in this order. ## 1. Name your website 1. Open **Settings**. 2. Enter the **Website name**. 3. Scroll down and click **SUBMIT**. ![The Settings screen with the Website name field at the top](/files/JanstB2P860f.webp) ## 2. Install widgets 1. Open **Widgets** and click **Import**. 2. Click a widget, such as **Headline**, and confirm with **Install**. 3. Repeat for each widget you want, then close the window. ## 3. Create a layout 1. Open **Layouts** and click **Create**. 2. Enter a **Name** and click **SUBMIT**. The new layout starts from a ready-made design with a header, a menu, a breadcrumb and a footer. It also creates two menus for you: **Main** and **Footer**. ## 4. Create the home page 1. Open **Pages** and click **Create**. 2. Enter a **Name**, such as `Home`. 3. In **URL address**, enter `/`. 4. Choose your **Layout** and click **SUBMIT**. ## 5. Add content 1. Click the page in the list to open the visual editor. 2. Click the content area, then click **Add a widget** (the green plus button) in the floating panel. 3. Pick a widget. 4. Click **Save**. ## 6. Add a link to the menu 1. Open **Navigation** and click **Main**. 2. Click **Add link**, enter a **Name** and a **URL address**, and click **SUBMIT**. 3. Click **SUBMIT** again to save the menu. Click the globe button in the header to see your website. --- title: Manage pages project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/pages/ updated: 2026-11-19T04:30:19.172Z --- # Manage pages > Create, open, pin and remove the pages of your website. The **Pages** screen lists every page of your website. Pinned pages come first, and a red **disabled** badge marks a page that visitors can't open. ![The Pages screen with the list of pages, their URL addresses and layouts](/files/Janste2n860f.webp) ## Create a page You need at least one [layout](../layouts/) first. 1. Click **Create**. 2. Fill in the form. See [Page settings](../page-settings/) for each field. 3. Click **SUBMIT**. ## Work with a page Click a row to open the [visual editor](../visual-editor/). The buttons at the end of each row do the following: | Button | What it does | |---|---| | **Show** | Opens the public page | | Pencil | Opens the page form | | Gear | Opens the menu with more actions | | Trash | Removes the page after you confirm | ![The menu of a page with Open editor, Source-code, Edit, Clone, Copy content to and Remove](/files/Janstf2o861f.webp) ## Remove a page 1. Click the trash button of the page. 2. Confirm. To remove several pages, tick their rows and choose **Options** > **Remove selected**. > **Pages with child pages:** remove the child pages first, one by one. Then remove the parent page. ## Sitemap The app publishes a list of your pages for search engines at `/sitemap.xml`. --- title: Page settings project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/page-settings/ updated: 2026-11-19T04:30:14.166Z --- # Page settings > What each field of the page form does. The page form opens when you create a page or click the pencil button of a page. ![The top of the Create page form with the Name, URL address, Layout and Parent fields](/files/JanstY2i861f.webp) ## Main fields | Field | What it does | |---|---| | **Name** | The name of the page. Required. | | **URL address** | The relative address of the page, such as `/contact/`. Leave it empty to generate it from the name. | | **Layout** | The [layout](../layouts/) around the page. Required. | | **Parent** | The parent page. A generated URL address then starts with the address of the parent, such as `/services/web-design/`. | ## Options | Field | What it does | |---|---| | **Disable page for visitors** | Hides the page. Visitors get a 404 error. | | **Pinned** | Keeps the page at the top of the list. | | **Language** | A two-letter language code. Leave it empty to show the page in every language. See [Publish one URL in two languages](../../recipes/multilingual-pages/). | | **Color** and **Icon** | Help you recognise the page in the admin. | ## HTML meta tags | Field | What it does | |---|---| | **Title** | The title of the page in the browser and in search results. Without it, the app uses the page name. | | **Description** | A short description for search engines. | | **Keywords** | Keywords of the page. | On every page except the home page, the app adds your website name after the title. --- title: Clone a page or copy its content project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/duplicate-pages/ updated: 2026-11-19T04:30:14.166Z --- # Clone a page or copy its content > Make a copy of a page, or replace the content of one page with another. You can reuse a page in two ways: clone it into a new page, or copy its content over an existing page. Both actions are in the gear menu of the page on the **Pages** screen. ## Clone a page 1. Click the gear button of the page. 2. Choose **Clone**. The copy gets the same content. Its name ends with `(CLONED)` and its URL address ends with `-cloned/`. For example, `/contact/` becomes `/contact-cloned/`. Open the [page form](../page-settings/) to rename it. To reuse the home page at `/`, create a new page and use **Copy content to** instead. ## Copy content to another page > **Warning:** this replaces the content of the target page. 1. Click the gear button of the page you want to copy from. 2. Choose **Copy content to**. 3. Choose the target page. 4. Confirm with **Copy**. --- title: The visual editor project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/visual-editor/ updated: 2026-11-19T04:30:19.172Z --- # The visual editor > Edit a page directly on its design, then save your changes. The visual editor shows your page inside its layout, so you see the result while you work. To open it, click a page on the **Pages** screen. ![The visual editor with the Preview, Save and Cancel buttons at the top and the toolbar above the page](/files/Jansu63B860f.webp) ## Top bar | Button | What it does | |---|---| | **Preview** | Opens the public page in a new tab | | **Save** | Saves your changes and closes the editor | | **Cancel** | Closes the editor | To save and keep working, press `Ctrl+S` (`Cmd+S` on a Mac). ## Toolbar The toolbar has **Undo change**, the device width and the text tools: **Bold**, **Italic**, **Underline**, **Make a link**, **Add icon**, **Highlight** and **Monospace**. To see how the page looks on another device, click **Full width** and choose **Desktop computer**, **Laptop**, **Tablet** or **Mobile phone**. ## Change text 1. Click the text. A floating panel appears. 2. Click the pencil button, **Edit**. 3. Type your text. 4. Press `Enter` to finish. ## Floating panel The panel appears above the element you click. ![The floating panel above a selected headline, with buttons to edit, configure, add and remove](/files/Jansu93C861f.webp) | Button | What it does | |---|---| | **Edit** | Changes the text | | **Widget settings** | Opens the [settings of the widget](../add-widgets-to-page/) | | **Change attributes** | Opens the [attributes editor](../element-attributes/) | | **Add a widget** | Adds a widget after this one | | **Remove** | Removes the element | | **Move up** and **Move down** | Change the order of the widgets | If you remove something by mistake, click **Undo change** in the toolbar. --- title: Add and configure widgets project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/add-widgets-to-page/ updated: 2026-11-19T04:30:14.166Z --- # Add and configure widgets > Place widgets on a page and change their settings. Widgets are the building blocks of a page. You can add only the widgets that you have [installed](../widgets/). ## Add a widget 1. Open the page in the [visual editor](../visual-editor/). 2. Click the content area, or a widget that is already there. 3. Click **Add a widget**, the green plus button in the floating panel. 4. Click the widget you want. ![The Widgets window with the installed widgets, a search field and the Import widgets button](/files/Janssg1y861f.webp) If the widget you need is missing, click **Import widgets** in the same window. ## Change the settings of a widget 1. Click the widget. 2. Click **Widget settings**, the gear button in the floating panel. 3. Change the fields. 4. Click **APPLY**. Each widget has its own fields. ![The settings of the Headline widget with its fields and the options to hide it by display size](/files/Janssi1z860f.webp) ## Hide a widget on some screens Every widget has the same four options in its settings: - **Hide for large display** - **Hide for medium display** - **Hide for small display** - **Hide for extra small display** Remember to **Save** the page when you finish. --- title: Element attributes project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/element-attributes/ updated: 2026-11-19T04:30:14.166Z --- # Element attributes > Change the classes, styles, spacing and colours of one element. The attributes editor changes the look of a single element on a page. ## Open the attributes editor 1. Open the page in the [visual editor](../visual-editor/). 2. Click the element. 3. Click **Change attributes** in the floating panel. 4. Change the fields and click **APPLY**. ## Fields | Field | What it does | |---|---| | **Class names** | CSS classes of the element | | **Element ID** | The ID of the element. **Generate from the content** creates one from its text. | | **Tooltip** | Text shown when the pointer rests on the element | | **Custom styles** | Your own CSS for this element | | **Margin** and **Padding** | Space around and inside the element, for each side | | **Border radius** | Rounded corners, for each corner | | **Text color**, **Background color** and **Border color** | The colours of the element | | **Source URL** | The address of the content that the element loads. **Browse files** picks an uploaded file. | --- title: Edit the page source code project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/page-source/ updated: 2026-11-19T04:30:19.172Z --- # Edit the page source code > Change the HTML of a page directly. If you know HTML, you can edit the code of a page directly. 1. Open **Pages**. 2. Click the gear button of the page. 3. Choose **Source-code**. 4. Change the code. 5. Click **SUBMIT**. This window holds the content of the page only. To change the header, menu or footer, edit the [layout](../layouts/). --- title: Manage files project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/files/ updated: 2026-11-19T04:30:14.166Z --- # Manage files > Upload, rename and remove pictures and documents. The **Files** screen keeps the pictures and documents of your website. ![The Files screen with the name, extension, dimension and size of each file](/files/Janst42J860f.webp) ## Upload files 1. Click **Upload** in the toolbar at the top. 2. Choose one or more files. Each file can be up to **10 MB**. ## Use a file Every file has a public address: ```text /download/. ``` Click **Download** in the row of a file to open it in a new tab, then copy the address. ## Rename a file 1. Click the pencil button of the file. 2. Enter the new name and confirm. ## Remove files - To remove one file, click its trash button and confirm. - To remove several files, tick their rows and choose **Options** > **Remove selected**. > **Warning: never use Options > Clear all files to tidy up your files.** Despite its name, this action erases your **entire website**: pages, layouts, navigation, redirects, widgets, variables, settings, posts and files. The website stops working at the next restart. If you ran it by accident, [restore a backup](../restore/). --- title: Use variables project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/variables/ updated: 2026-11-19T04:30:19.172Z --- # Use variables > Keep a value in one place and reuse it on every page. A variable keeps a value, such as a phone number, in one place. Change it once and every page shows the new value. ![The Variables screen with the company and phone variables](/files/Jansu238861f.webp) ## Create a variable 1. Open **Variables**. 2. In **Type a key**, enter a name such as `phone`. 3. In **Type a value and press enter**, enter the value and press `Enter`. Variables are saved automatically with each change. ## Use a variable Write the key with a dollar sign anywhere in a page or layout: ```text Call us on $phone ``` Visitors see the value in its place. ## Rules for keys - Use only letters and digits. A key such as `my_key` doesn't work. - If no variable has that key, visitors see the text as you wrote it. ## Remove a variable Click the red cross at the end of its row. --- title: Write posts project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/posts/ updated: 2026-11-19T04:30:19.172Z --- # Write posts > Keep articles in the admin with a category, a date and Markdown text. The **Posts** screen keeps articles with a title, a category, a date and text in Markdown format. > **Good to know:** posts stay in the admin. The app has no public page or catalog widget that shows them on your website. To publish an article for visitors, create a [page](../pages/). ![The Posts screen with the category, name and dates of each post](/files/Janstj2r860f.webp) ## Create a post 1. Open **Posts** and click **Create**. 2. Enter the **Title**. 3. Fill in the other fields you need. 4. Write the text in the Markdown area. 5. Click **SUBMIT**. ![The Create post form with the Title, Summary, Category, Date, Icon and Color fields and the Markdown area](/files/Janstm2s861f.webp) ## Fields | Field | What it does | |---|---| | **Title** | The title of the post. Required. | | **Summary** | An optional short description | | **Category** | Choose a category, or type a new one | | **Date** | The date of the post. Leave it empty to use the current time. | | **Icon** and **Color** | Help you recognise the post | ## Remove posts - To remove one post, click its trash button and confirm. - To remove several, tick their rows and choose **Options** > **Remove selected**. --- title: Manage layouts project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/layouts/ updated: 2026-11-19T04:30:14.166Z --- # Manage layouts > Create, edit, clone and remove the frames around your pages. A layout is the frame around your pages: the header, the menu, the footer and the area for content. Every page uses one layout. ![The Layouts screen with two layouts and their edit buttons](/files/JanstJ2W861f.webp) ## Create a layout 1. Open **Layouts** and click **Create**. 2. Enter a **Name**. You can also choose a **Color** and an **Icon**. 3. Click **SUBMIT**. The new layout starts from a ready-made design. It also creates the **Main** and **Footer** menus in [Navigation](../navigation/). ## Edit a layout Click a layout to change its design in the [visual editor](../visual-editor/). To change its code, click the gear button and choose **Source-code**. The [layout markup](../../reference/layout-markup/) explains the special parts of the code. A change in a layout appears on every page that uses it. ## Clone a layout Click the gear button and choose **Clone**. The name of the copy ends with `(CLONED)`. ## Remove a layout > **Warning:** pages that use a removed layout return a 404 error. Move those pages to another layout first. 1. Click the gear button of the layout. 2. Choose **Remove** and confirm. --- title: Manage navigation project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/navigation/ updated: 2026-11-19T04:30:14.166Z --- # Manage navigation > Build the menus of your website with links and sub-links. The **Navigation** screen holds the menus of your website. The ready-made layout shows two of them: **Main** at the top and **Footer** at the bottom. ![The Navigation screen with the Main and Footer menus](/files/JanstM2Z860f.webp) ## Add a link 1. Open **Navigation** and click a menu. 2. Click **Add link**. 3. Fill in the form and click **SUBMIT**. 4. Click **SUBMIT** in the menu window to save the menu. ![The window of the Main menu with its links and sub-links](/files/JanstP2a861f.webp) ## Link fields ![The Create link form](/files/JanstR2b860f.webp) | Field | What it does | |---|---| | **Name** | The text of the link. Required. | | **URL address** | Where the link goes. Required. **Find page**, **Browse files**, **Email** and **Phone number** help you fill it in. | | **Target** | **Current tab** or **New tab** | | **Custom argument** | An extra value for your own layout code | | **Icon** and **Color** | The look of the link | | **Highlight in navigation** | Colours the link in this list. The ready-made layout shows it like any other link. | | **Hidden in navigation** | Keeps the link in this list but hides it from visitors | ## Add a sub-link Click the green plus button in the row of a link. The sub-link appears indented under it. ## Change or remove a link - Click the pencil button to edit a link. - Click the gear button and choose **Remove** to delete it. - Click **Clear links** to remove every link of the menu. Save the menu with **SUBMIT** after each change. ## Create another menu Click **Create** on the **Navigation** screen, enter a **Name** and click **SUBMIT**. --- title: Create redirects project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/redirects/ updated: 2026-11-19T04:30:19.172Z --- # Create redirects > Send visitors from one URL address to another. A redirect sends visitors from an old address to a new one. ![The Redirects screen with two redirects](/files/Janstp2v860f.webp) ## Create a redirect 1. Open **Redirects** and click **Create**. 2. In **URL**, enter the old relative address, such as `/about/`. 3. In **Target URL**, enter the new address. 4. Tick **Permanent redirect** if the move is final. 5. Click **SUBMIT**. ![The Create redirect form with the URL, Target URL and Permanent redirect fields](/files/Janstr2w861f.webp) ## Target addresses - For a page on your website, use a relative address such as `/about-us/`. - For another website, use the full address with `https://`. ## Good to know - A redirect wins over a page with the same URL address. - Use addresses that end with a slash, such as `/old-page/`. An address with a file extension, such as `/old.html`, doesn't redirect. - A **Permanent redirect** tells browsers and search engines that the page has moved for good. Without it, the move is temporary. ## Change or remove a redirect Click the gear button of the redirect and choose **Edit** or **Remove**. --- title: Install widgets project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/widgets/ updated: 2026-11-19T04:30:19.172Z --- # Install widgets > Add widgets from the official catalog and manage the installed ones. A new installation has no widgets. Install the ones you need from the official catalog, then [add them to your pages](../add-widgets-to-page/). ![The Widgets screen with the installed widgets](/files/JansuD3F860f.webp) ## Install a widget 1. Open **Widgets** and click **Import**. 2. Find a widget. You can use **Search widgets**. 3. Click the widget and confirm with **Install**. A green check mark shows the widgets you have installed. ![The Import widgets window with the catalog and green check marks on installed widgets](/files/JansuG3G861f.webp) ## Manage installed widgets Click the gear button of a widget to **Edit** or **Remove** it. --- title: Read the dashboard project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/dashboard/ updated: 2026-11-19T04:30:14.166Z --- # Read the dashboard > Understand the visitor statistics of your website. The **Dashboard** shows who is visiting your website right now and how today is going. ![The Dashboard with online visitors, sources today, today statistics and the daily chart](/files/Janssx2C861f.webp) ## Panels | Panel | What it shows | |---|---| | **Online visitors** (the circle) | How many people are on your website now, the time of the last visit, robots, and mobile and desktop devices | | **Sources today** | Where visitors came from: social networks, adverts, organic search, direct visits or an unknown source | | **Today statistics** | Hits, visitors, unique visitors, unique visitors per month and visited pages per user | | **Live table** | The current visitors with their type, address, user, IP address and time | | **Maximum daily online visitors** | The highest number of visitors online for each hour | ## Privacy Every public page reports visits to these statistics, and the app has no setting to turn this off. The dashboard also shows the IP addresses of current visitors. Mention this in the privacy notice of your website. --- title: Change your credentials project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/change-credentials/ updated: 2026-11-19T04:30:14.166Z --- # Change your credentials > Change your name, login and password. The app has one administrator account. Change its generated credentials right after the [first sign-in](../first-sign-in/). ![The account menu with Change credentials and Logout](/files/Janssr27860f.webp) ## Change your credentials 1. Click the **account** button at the top right. 2. Choose **Change credentials**. 3. Enter your **Name** and **Login**. 4. Enter a new **Password**. Leave it empty to keep the current one. 5. Click **SUBMIT**. Choose a long password that you don't use anywhere else. > **Tip:** keep the app running for a minute after you change your credentials, so they are safely stored before any restart. ## Sign out Click the **account** button and choose **Logout**. If you lose your password, see [I forgot my password](../../faq/forgot-password/). --- title: Configure SMTP project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/smtp/ updated: 2026-11-19T04:30:19.172Z --- # Configure SMTP > Enter the options of your mail server and test the connection. The SMTP settings tell the app which mail server to use. ![The SMTP settings section with the SMTP server field and the Test button](/files/Janstx33860f.webp) ## Enter your mail server **1.** Open **Settings** and scroll to **SMTP settings**. **2.** In **SMTP server**, enter the options in JSON format: ```json {"server":"smtp.example.com","port":587,"from":"info@example.com","user":"info@example.com","password":"your-password"} ``` **3.** Click **Test**. **4.** When the connection works, click **SUBMIT**. ## Read the result of the test - **SMTP server is configured correctly.** The app reached your mail server. - **SMTP response:** followed by an error. Check the server, the port and your login. The field must contain valid JSON. Check the quotes and commas if the test doesn't answer. --- title: Enable TMS project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/tms/ updated: 2026-11-19T04:30:19.172Z --- # Enable TMS > Turn on the Total.js Message Service and protect it with a token. The Total.js Message Service (TMS) lets other Total.js applications exchange data with your website. ## Turn on TMS 1. Open **Settings**. 2. Tick **Enable TMS**. The screen shows the **URL address** of the service, which ends with `/$tms/`. 3. Click **Generate** to create a **Security token**. 4. Scroll down and click **SUBMIT**. Always use a security token. Applications that connect must send it in the `x-token` header. ## Turn off TMS 1. Untick **Enable TMS** and click **SUBMIT**. 2. Restart the app to close the service. --- title: Connect to OpenPlatform project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/openplatform/ updated: 2026-11-19T04:30:14.166Z --- # Connect to OpenPlatform > Find the import link and understand what the OpenPlatform tokens change. Total.js OpenPlatform can manage access to several applications from one place. The **Total.js OpenPlatform** section of **Settings** connects the CMS to it. ## Import link The section shows the link to paste into the importing form of your OpenPlatform. It ends with `/openplatform.json`. ## Tokens Get the **Request token** and the **Response token** from the registration form of the application in your OpenPlatform, then enter them in **Settings**. > **Warning:** when you save both tokens, you are signed out and the `/admin/` sign-in page stops working. From then on, you can open the admin only through OpenPlatform. [Back up your site](../backup/) first, and enter the tokens only when your OpenPlatform is ready. --- title: Back up your site project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/backup/ updated: 2026-11-19T04:30:14.166Z --- # Back up your site > Download a copy of your whole website in one file. A backup is one file with the content of your whole website. Make one before every large change. ## Download a backup 1. Click **Home** in the breadcrumb. 2. Click the **Backup** tile. 3. Confirm with **Export**. Your browser downloads a file named after your website and the date, such as `demo-website-2026-11-18.txt`. Keep it in a safe place, because it contains your settings. ## What the backup contains - Pages and layouts - Widgets and navigation - Redirects and variables - Settings - Uploaded files - Posts ## What the backup leaves out - Your administrator account - Visitor statistics To bring a backup back, see [Restore a backup](../restore/). --- title: Restore a backup project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/restore/ updated: 2026-11-19T04:30:19.172Z --- # Restore a backup > Bring your website back from a backup file. Restoring puts your website back to the moment of the backup. > **Warning:** a restore replaces all current content. Anything you added after the backup is lost. ## Restore a backup 1. Click **Home** in the breadcrumb. 2. Click the **Restore** tile. 3. Choose your backup file. The limit is 100 MB. 4. Confirm with **Import**. When the app reports that the data has been imported, your website is back. Your administrator account doesn't change, so you stay signed in. --- title: Clear all content project: CMS version: 1.0 section: guides language: en license: MIT url: https://totaljs.es/docs/cms/1-0/guides/clear-content/ updated: 2026-11-19T04:30:14.166Z --- # Clear all content > Erase the content of your website and start again. The **Clear** tile erases your website so that you can start again from an empty installation. > **Warning:** this erases pages, layouts, widgets, navigation, redirects, variables, settings, files and posts. You can't undo it. [Download a backup](../backup/) first. ## Clear the content 1. Click **Home** in the breadcrumb. 2. Click the **Clear** tile. 3. Confirm with **Clear**. Your administrator account stays, so you can keep working. To bring the content back, [restore a backup](../restore/). --- title: Configuration file project: CMS version: 1.0 section: reference language: en license: MIT url: https://totaljs.es/docs/cms/1-0/reference/configuration/ updated: 2026-11-19T04:30:19.172Z --- # Configuration file > The keys of the config file in the app folder. The `config` file in the app folder holds the settings that apply when the app starts. Restart the app after you change it. ```text salt (generate) : 10 $api : /admin/ cdn : //cdn.componentator.com ``` ## Keys in the file | Key | What it does | |---|---| | `salt` | A random value that the app generates for itself. Leave it as it is. | | `$api` | The address of the admin. **Keep it as `/admin/`**: the admin works only at this address. | | `cdn` | The content network that serves the styles and scripts of the admin | ## Keys you can add | Key | Example | What it does | |---|---|---| | `$port` | `8000` | The port of the app | | `$ip` | `127.0.0.1` | The network address the app listens on. Use `127.0.0.1` when a reverse proxy runs on the same server. | | `language` | `en` | The default language of visitors. See [Publish one URL in two languages](../../recipes/multilingual-pages/). | For example: ```text $port : 8000 $ip : 127.0.0.1 language : en ``` --- title: Layout markup project: CMS version: 1.0 section: reference language: en license: MIT url: https://totaljs.es/docs/cms/1-0/reference/layout-markup/ updated: 2026-11-19T04:30:19.172Z --- # Layout markup > The special parts of the code of a layout. When you edit the source code of a [layout](../../guides/layouts/), these parts have a special meaning. ## Content area Pages place their content in this area: ```html
``` ## Editor-only content An element with the `CMS_editor` class appears in the editor but not on the public page. Use it for placeholders: ```html ``` ## Menus This script shows the menu with the given name. If the menu doesn't exist, saving the layout creates it in [Navigation](../../guides/navigation/). ```html ``` ## Breadcrumb ```html ``` ## Placeholders | Placeholder | What it becomes | |---|---| | `@{year}` | The current year | | `@{ui}` | The address of the UI library script | | `$key` | The value of a [variable](../../guides/variables/) | --- title: Public URLs project: CMS version: 1.0 section: reference language: en license: MIT url: https://totaljs.es/docs/cms/1-0/reference/public-urls/ updated: 2026-11-19T04:30:19.172Z --- # Public URLs > The addresses that the app publishes besides your pages. Besides your pages, the app answers at these addresses. | Address | What it is | |---|---| | `/admin/` | The admin and its sign-in page | | `/sitemap.xml` | The list of your pages for search engines | | `/download/.` | An [uploaded file](../../guides/files/) | | `/openplatform.json` | The [import link for OpenPlatform](../../guides/openplatform/) | | `/$tms/` | The [Total.js Message Service](../../guides/tms/), when you enable it | --- title: Where data is stored project: CMS version: 1.0 section: reference language: en license: MIT url: https://totaljs.es/docs/cms/1-0/reference/data-storage/ updated: 2026-11-19T04:30:19.172Z --- # Where data is stored > The files in which the app keeps your website. The app keeps all its data in the `databases` folder inside the app folder. | Path | What it holds | |---|---| | `databases/fs-db/` | Your website: pages, layouts, widgets, navigation, redirects, variables, settings, files and posts | | `databases/memorize_account.json` | The administrator account | | `databases/visitors.cache` | Visitor statistics | | `databases/config.json` | Values that the app generates for itself | To copy your website to another server, use [Backup](../../guides/backup/) and [Restore](../../guides/restore/). Protect this folder on your server, because it contains your account and settings. --- title: Set the home page project: CMS version: 1.0 section: recipes language: en license: MIT url: https://totaljs.es/docs/cms/1-0/recipes/set-home-page/ updated: 2026-11-19T04:30:19.172Z --- # Set the home page > Make a page the first thing visitors see. The home page is the page with the URL address `/`. Until you create it, visitors who open your website get a 404 error. 1. Open **Pages** and click **Create**. 2. Enter a **Name**, such as `Home`. 3. In **URL address**, enter `/`. 4. Choose a **Layout**. 5. Click **SUBMIT**. 6. Click the page in the list and add your content in the [visual editor](../../guides/visual-editor/). 7. Click **Save**. To make an existing page the home page, click its pencil button and change its **URL address** to `/`. --- title: Publish one URL in two languages project: CMS version: 1.0 section: recipes language: en license: MIT url: https://totaljs.es/docs/cms/1-0/recipes/multilingual-pages/ updated: 2026-11-19T04:30:19.172Z --- # Publish one URL in two languages > Show different content at the same address for each language. Two pages can share one URL address when each has its own language. ## Create the pages 1. Create a page with the **URL address** `/hello/` and the **Language** `en`. 2. Create a second page with the same **URL address** and the **Language** `sk`. 3. Add the content of each page. ## Open a language Add the language to the address: ```text /hello/?language=en /hello/?language=sk ``` ## Set the default language Without a language in the address, these pages return a 404 error. To choose the default, add this line to the [configuration file](../../reference/configuration/) and restart the app: ```text language : en ``` Pages with an empty **Language** field appear in every language. --- title: Change a page URL safely project: CMS version: 1.0 section: recipes language: en license: MIT url: https://totaljs.es/docs/cms/1-0/recipes/rename-page-url/ updated: 2026-11-19T04:30:19.172Z --- # Change a page URL safely > Move a page to a new address without breaking old links. When you change the address of a page, the old address stops working. A redirect keeps old links and search results alive. 1. Open **Pages** and click the pencil button of the page. 2. Change the **URL address**, for example from `/about-us/` to `/about-company/`. 3. Click **SUBMIT**. Links to this page in [Navigation](../../guides/navigation/) update automatically. 4. Open **Redirects** and click **Create**. 5. In **URL**, enter the old address, `/about-us/`. 6. In **Target URL**, enter the new address, `/about-company/`. 7. Tick **Permanent redirect** and click **SUBMIT**. Links that you typed into the content of other pages don't change, so check them too. --- title: Run on another port project: CMS version: 1.0 section: recipes language: en license: MIT url: https://totaljs.es/docs/cms/1-0/recipes/change-port/ updated: 2026-11-19T04:30:19.172Z --- # Run on another port > Start the app on the port you choose. The app can use any free port. Choose one of these two ways. ## In the start command ```bash node index.js 8080 ``` ## In the configuration file Add this line to the [configuration file](../../reference/configuration/): ```text $port : 8080 ``` Then start the app without a port: ```bash node index.js ``` Open `http://localhost:8080/` in your browser. --- title: I forgot my password project: CMS version: 1.0 section: faq language: en license: MIT url: https://totaljs.es/docs/cms/1-0/faq/forgot-password/ updated: 2026-11-19T04:30:14.166Z --- # I forgot my password > Create a new administrator account when you cannot sign in. You can make the app create a new account. Your website content stays as it is. **1.** Stop the app. **2.** Delete the account file in the app folder: ```bash rm databases/memorize_account.json ``` **3.** Start the app. **4.** Open `/admin/` **straight away**. The sign-in page shows a new generated account in the **Default account** box, for anyone who opens it until you sign in. **5.** Click **Fill in the form**, then **Sign in**. **6.** [Change your credentials](../../guides/change-credentials/). --- title: My page returns a 404 error project: CMS version: 1.0 section: faq language: en license: MIT url: https://totaljs.es/docs/cms/1-0/faq/page-not-found/ updated: 2026-11-19T04:30:14.166Z --- # My page returns a 404 error > The usual reasons why a page does not open. If a page returns a 404 error, check these points on the **Pages** screen. ## Is the page disabled? A red **disabled** badge means that **Disable page for visitors** is ticked. Open the page form and untick it. ## Does the page have a language? A page with a **Language** opens only in that language. Empty the field, or see [Publish one URL in two languages](../../recipes/multilingual-pages/). ## Is the URL address correct? Compare the address in your browser with the **URL address** column. Addresses end with a slash, such as `/contact/`. ## Was the layout removed? A page whose [layout](../../guides/layouts/) was removed returns a 404 error. Open the page form and choose another **Layout**. ## Is it the home page? Your website has no home page until you [create one](../../recipes/set-home-page/). --- title: The sign-in page keeps coming back project: CMS version: 1.0 section: faq language: en license: MIT url: https://totaljs.es/docs/cms/1-0/faq/signin-rejected/ updated: 2026-11-19T04:30:14.166Z --- # The sign-in page keeps coming back > What to do when correct credentials do not open the admin. After many requests to the admin without a valid session, the app stops accepting sessions from that network address for up to 15 minutes. During that time, the sign-in page keeps coming back even when your credentials are correct. ## What to do - Wait 15 minutes and sign in again. - Or restart the app, which clears the block straight away. ## If the page shows a 401 error The OpenPlatform tokens are set, so the admin opens only through OpenPlatform. See [Connect to OpenPlatform](../../guides/openplatform/). --- title: Official widgets project: CMS version: 1.0 section: widgets language: en license: MIT url: https://totaljs.es/docs/cms/1-0/widgets/introduction/ updated: 2026-11-19T11:56:36.261Z --- # Official widgets > Where the official widgets come from and how to read the catalogue. 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](https://github.com/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: ```text https://cdn.totaljs.com/cms/db.json ``` Your 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 1. [Install the widgets](/cms/1-0/guides/widgets/) that you need from **Widgets** > **Import**. 2. [Add them to a page](/cms/1-0/guides/add-widgets-to-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](../../development/introduction/). --- title: Layout and containers project: CMS version: 1.0 section: widgets language: en license: MIT url: https://totaljs.es/docs/cms/1-0/widgets/layout/ updated: 2026-11-20T06:51:42.966Z --- # Layout and containers > Widgets that arrange other widgets in boxes, columns and spaces. Widgets that arrange other widgets: boxes, columns, containers and spaces. Most of them have an empty area that holds other widgets. To fill it, click the area in the visual editor and choose **Add a widget**. The columns sit side by side on wide screens and one below the other on small screens. ## API ### box.html Type: `component` A light grey box that holds other widgets. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `rounded` | `Boolean` | no | `true` | **Rounded**: rounded corners. | | `padding` | `Boolean` | no | `true` | **Padding**: space inside the box. | The box has an area for widgets inside. Use **Change attributes** on the box to change its background or other styles. ### columns100.html Type: `component` One area across the full width that holds other widgets. Use it to group widgets, for example to give them common attributes with **Change attributes**. ### columnshalfs.html Type: `component` Two columns of the same width, each one holds other widgets. Each column is an empty area for widgets. ### columnsthirds.html Type: `component` Three columns of the same width, each one holds other widgets. Each column is an empty area for widgets. ### container.html Type: `component` A centred area with the standard page width that holds other widgets. The area uses the `container` class of the layout, which limits its width on large screens. ### vcontainer.html Type: `component` An area with a minimum and a maximum width that holds other widgets. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `min` | `String` | no | `200px` | **Min. width**: the smallest width of the area. | | `max` | `String` | no | `70%` | **Max. width**: the largest width of the area. | Enter the widths in pixels or percentages, such as `300px` or `50%`. Until you apply the settings for the first time, the area has a minimum width of `350px`. ### gradient.html Type: `component` A box with a gradient background that holds other widgets. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `background` | `String` | no | `color1` | **Choose a gradient swatch**: the gradient, from `color1` to `color30`. | | `rounded` | `Boolean` | no | `true` | **Rounded**: rounded corners. | | `padding` | `Boolean` | no | `true` | **Padding**: space inside the box. | Choose one of 30 gradient swatches in the settings. ### emptyspace.html Type: `component` Vertical space between other widgets. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `count` | `Number` | no | `1` | **Count**: the height in steps of 20 pixels, from 1 to 100. | Each step of **Count** adds 20 pixels of height. ### line.html Type: `component` A horizontal line that separates content. The widget has no settings. --- title: Text project: CMS version: 1.0 section: widgets language: en license: MIT url: https://totaljs.es/docs/cms/1-0/widgets/text/ updated: 2026-11-20T06:51:42.966Z --- # Text > Widgets for headings, paragraphs, messages, code and short facts. Widgets for headings, paragraphs, messages, code and short facts. Click a text in the visual editor and choose **Edit** to write your own. ![Headline, Paragraph 2, Alert and Code highlighter on a public page](/files/Jaq7ZG4k161f.webp) ## API ### headline.html Type: `component` A heading with a paragraph below it. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `h` | `String` | no | `h1` | **Heading**: the level of the heading, `h1`, `h2` or `h3`. | | `align` | `String` | no | `left` | **Align**: `left`, `center` or `right`. | | `maxwidth` | `String` | no | `auto` | **Paragraph max. width**: `auto`, or a width such as `50%` or `300px`. | You can **Duplicate** the paragraph to add more. The file in the repository also offers **Justify** for **Align**. ### paragraph.html Type: `component` One or more paragraphs of text. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `align` | `String` | no | `left` | **Align**: `left`, `center`, `right` or `justify`. | Choose **Duplicate** on a paragraph to add another one. ### paragraph2.html Type: `component` A short bold title with one or more paragraphs. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `align` | `String` | no | `left` | **Align**: `left`, `center`, `right` or `justify`. | Choose **Duplicate** on a paragraph to add another one. ### alert.html Type: `component` A coloured box with a short message. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `size` | `String` | no | `medium` | **Size**: `small`, `medium` or `large`. | | `align` | `String` | no | `left` | **Align**: `left`, `center` or `right`. | | `color` | `String` | no | `color1` | **Choose a color**: one of the four swatches. | The four colours are yellow (`color1`), red (`color2`), green (`color3`) and blue (`color4`). ### codehighlighter.html Type: `component` A block of source code with coloured syntax. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `language` | `String` | no | | The language of the code, such as `js` or `html`. Leave it empty or enter `auto` to detect it. | The text keeps its line breaks. On the public site the colours come from the highlight.js library, which CMS loads from `cdnjs.cloudflare.com` on every page while the widget is installed. In the editor the code appears without colours. ### keyvalue.html Type: `component` Pairs of a name and a value, such as opening hours or product facts. Choose **Duplicate** on a pair to add another one. The widget has no settings of its own. --- title: Images and video project: CMS version: 1.0 section: widgets language: en license: MIT url: https://totaljs.es/docs/cms/1-0/widgets/media/ updated: 2026-11-20T06:51:42.966Z --- # Images and video > Widgets that show pictures, logos, a gallery and a video. Widgets that show pictures, logos and a video. A new image shows a grey placeholder of its size. Click it in the visual editor and choose **Edit** to upload or pick a picture from [Files](/cms/1-0/guides/files/). When an image has a fixed size, CMS opens a crop window so that your picture fits. The widgets **Picture**, **Images**, **Image links** and **Partners** add `loading="lazy"` to their images on the public site, so the browser loads each picture when the visitor scrolls to it. ## API ### picture.html Type: `component` One image across the width of its area. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `link` | `Boolean` | no | `false` | **Enable link**: wraps the image in a link to `/`. Change the address with **Change link**. | | `rounded` | `Boolean` | no | `false` | **Rounded corners**: rounds the corners of the image. | Without a link, the image has the `img-viewer` class. ### images.html Type: `component` Rows of images: one, two and three images per row. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `links` | `Boolean` | no | `false` | **Enable links**: wraps each image in a link to `/`. | Each image is 1920 x 1080 pixels. Choose **Duplicate** or **Remove** on a row to change the number of rows. The file in the repository also has a row of four images. ### gallery.html Type: `component` A grid of uploaded pictures. Open **Widget settings** to add pictures: CMS opens the file picker, where you can choose several images at once. It uploads them to [Files](/cms/1-0/guides/files/) and adds them to the gallery. Each new picture can be removed on its own. The widget stores no settings. ### imagelinks.html Type: `component` Four square images, each with a title and a link. Each image is 300 x 300 pixels. Change the address of each tile with **Change link**, and choose **Duplicate** to add tiles. ### partners.html Type: `component` A grid of 16 logos, for example of partners or customers. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `layout` | `String` | no | `col-sm-3` | **Layout**: `col-sm-3` for 4 columns or `col-sm-2` for 6 columns. | | `links` | `Boolean` | no | `true` | **Enable links**: makes each logo a link that opens in a new tab. | Each logo is 300 x 200 pixels. Choose **Remove** on a logo you do not need. ### video.html Type: `component` An embedded video player. The widget embeds a sample Vimeo video. To show your own video, click the player, choose **Change attributes** and enter the embed address of your video in **Source URL**. The widget has no settings of its own. --- title: Text and images project: CMS version: 1.0 section: widgets language: en license: MIT url: https://totaljs.es/docs/cms/1-0/widgets/text-and-images/ updated: 2026-11-20T06:51:42.966Z --- # Text and images > Widgets that combine a heading and text with a picture. Widgets that combine a heading and text with a picture, and a widget that presents your team. ![Text + image left and Text + image right on a public page](/files/Jaq7Yx4R160f.webp) On small screens the picture and the text appear one below the other. ## API ### article.html Type: `component` A heading and a paragraph beside a picture. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `align` | `String` | no | `left` | **Align**: `left` puts the text on the left, `right` puts the picture on the left. | The picture is 540 x 443 pixels. ### insight.html Type: `component` Three panels, each with a heading, a paragraph, a link and a picture. Each picture is 500 x 350 pixels and is a link. Choose **Duplicate** or **Remove** on a panel to change their number. Leave its settings as they are: applying them removes the picture of the first panel. ### summary.html Type: `component` A square picture with a caption and a text beside it. The picture is 250 x 250 pixels. Below the text there is an area for other widgets. Choose **Duplicate** to add another summary. ### textimagecenter.html Type: `component` A centred heading and paragraph above a wide picture. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `h` | `String` | no | `h2` | **Heading**: the level of the heading, `h1`, `h2` or `h3`. | | `link` | `Boolean` | no | `false` | **Link image**: wraps the picture in a link. | | `paddingtop` | `Boolean` | no | `true` | **Top padding**: adds space above the widget. | Below the paragraph there is an area for other widgets. ### textimageleft.html Type: `component` A picture on the left with a heading and a paragraph on the right. The text column is an area that also holds other widgets. ### textimageright.html Type: `component` A heading and a paragraph on the left with a picture on the right. The text column is an area that also holds other widgets. ### textimageflex.html Type: `component` A picture beside a title and a short paragraph. The text column is an area that also holds other widgets. The fields of its settings window do not change the widget. ### team.html Type: `component` Four people with a round photo, a name and a position. Each photo is 150 x 150 pixels. Choose **Duplicate** or **Remove** on a person to change their number. --- title: Lists and features project: CMS version: 1.0 section: widgets language: en license: MIT url: https://totaljs.es/docs/cms/1-0/widgets/lists-and-features/ updated: 2026-11-20T06:51:42.966Z --- # Lists and features > Widgets for check lists, icons with short texts, feature grids, panels and expandable lists. Widgets that present several similar items: lists, features with icons, panels and an expandable list. In most of them you choose **Duplicate** on an item to add one more. ![Features 3, Panels - thirds and Expansion list on a public page](/files/Jaq7YU3y161f.webp) ## API ### list.html Type: `component` A list of items, each with a check icon. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `large` | `Boolean` | no | `false` | **Large**: bigger text and icons. | | `twocolumns` | `Boolean` | no | `false` | **Two columns**: splits the list into two columns. Switching it on or off replaces the items with one sample item per column, so set it before you write the items. | Click an icon and choose **Edit** to pick another one. ### properties.html Type: `component` Four icons with a short text below each. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `size` | `String` | no | `large` | **Size**: `small`, `medium` or `large`. | Use it for short facts such as features or contact details. ### features2.html Type: `component` Two rows of features, each with an icon or picture, a heading and a paragraph. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `type` | `String` | no | `icons` | **Type**: `icons` or `pictures` (50 x 50 pixels) beside each feature. | | `columns` | `String` | no | `3` | **Columns**: `2` or `3` features in each row. | Each text column is an area that also holds other widgets. ### features3.html Type: `component` Six features in a grid, each with a coloured icon, a title and a paragraph. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `color` | `String` | no | `black` | **Color**: the colour of the icons: `smoke` (Silver), `yellow`, `red`, `blue`, `green`, `pink`, `orange`, `purple`, `mint`, `black` or `white`. | Choose **Duplicate** or **Remove** on a feature to change their number. ### panelsthirds.html Type: `component` Three coloured panels, each with an icon, a heading and a paragraph. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `color` | `String` | no | `smoke` | **Theme**: the colour of the panels: `smoke` (Silver), `yellow`, `red`, `blue`, `green`, `black` or `white`. | | `mobilecarousel` | `Boolean` | no | `false` | **Enable carousel (XS)**: on extra small screens the panels become a carousel that the visitor swipes. | Each panel is an area that also holds other widgets. ### expansionlist.html Type: `component` A list of titles that open and close when a visitor clicks them. Each item has a title and an area for other widgets that appears when the visitor clicks the title. In the editor every area is open, so that you can fill it. The widget has no settings. --- title: Links and buttons project: CMS version: 1.0 section: widgets language: en license: MIT url: https://totaljs.es/docs/cms/1-0/widgets/links-and-buttons/ updated: 2026-11-20T06:51:42.966Z --- # Links and buttons > Widgets for buttons, groups of links, social networks and tags. Widgets that lead visitors to other pages. To change the address of a link, click it in the visual editor and choose **Change link**. ![Link button, Buttons group, Social networks and Tags on a public page](/files/Jaq7YH3n160f.webp) ## API ### linkbutton.html Type: `component` One button with an icon and a text. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `block` | `Boolean` | no | `false` | **Full width**: the button fills the width of its area. | | `size` | `String` | no | `medium` | **Size**: `small`, `medium` or `large`. | | `align` | `String` | no | `center` | **Align**: `left`, `center` or `right`. | | `color` | `String` | no | `smoke` | **Color**: `smoke` (Silver), `yellow`, `red`, `blue`, `green`, `pink`, `orange`, `purple`, `mint`, `black` or `white`. | | `blockxs` | `Boolean` | no | `false` | **Full width in XS**: the button fills the width on extra small screens. | Change its address with **Change link**. ### buttonsgroup.html Type: `component` Three large link buttons, each with a coloured icon, a name and a description. Choose **Duplicate** or **Remove** on a button to change their number. The widget has no settings. ### socialnetworks.html Type: `component` Links to GitHub, Telegram, Twitter, Facebook, LinkedIn and Instagram. The links use [variables](/cms/1-0/guides/variables/): `$github`, `$telegram`, `$twitter`, `$facebook`, `$linkedin` and `$instagram`. When you install the widget, CMS creates each of these variables that does not exist yet, with the address of the Total.js profile. Change their values on the **Variables** screen to link to your own profiles. Remove the networks you do not use with **Remove**. ### tags.html Type: `component` A row of small labels, each a link. | Parameter | Type | Required | Default | Description | | --- | --- | --- | --- | --- | | `large` | `Boolean` | no | `false` | **Large**: bigger tags. | | `color` | `String` | no | `color1` | **Choose a color**: one of six swatches, `color1` to `color6`. | Choose **Duplicate** on a tag to add one more. --- 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. --- title: Develop widgets project: CMS version: 1.0 section: development language: en license: MIT url: https://totaljs.es/docs/cms/1-0/development/introduction/ updated: 2026-11-19T11:56:27.963Z --- # Develop widgets > What a widget is, what you need to write one and what to read next. A widget is a building block of a CMS page, such as **Headline**, **Picture** or **Link button**. When the [official widgets](../../widgets/introduction/) do not cover your need, you can write your own. A widget is one HTML file with some JavaScript and CSS, and you can create it in the CMS admin without other tools. This section covers Total.js CMS 1.0. To use CMS itself, see the [CMS guides](/cms/1-0/guides/overview/). ## How a widget works | Word | What it means | |---|---| | **Widget** | The file: its server script, styles, settings form and the HTML that it adds to a page. CMS keeps one copy of each installed widget. | | **Instance** | One use of the widget on a page. A page can hold the same widget many times, each with its own settings and content. | | **Configuration** | The settings of one instance. The editor stores them in the page, next to the HTML of the instance. | | **Editor** | The visual editor of CMS. It inserts the HTML of the widget, lets the user edit the parts that you mark, and opens your settings form. | | **Render** | What happens on the public site. CMS builds the page from the saved HTML, and a widget can replace its part with content made on the server. | A widget can be fully static: its HTML is all it needs. Add a server function only when the content must be made each time the page is built, such as data from another service. ## What you need - A running CMS and an account with the **Widgets** permission, or an administrator account. - Basic HTML, CSS and JavaScript. The server script runs in Node.js with the Total.js 5 framework, so its helpers such as `RESTBuilder` and `Tangular` are available. - The editor and the public pages use the UI library of Total.js (jComponent), which the layout loads. Settings forms use its components, such as `input`. ## Safe use The server script of a widget runs inside the CMS process with full access to the server. Give the **Widgets** permission only to people you trust, and install only widgets whose code you have read. ## What to read next 1. [The widget file](../widget-file/): the parts of the file. 2. [Your first widget](../first-widget/): create it, add it to a page and change it. 3. The topics in the menu: [settings](../settings/), [editable content](../editable-content/), [rendering](../rendering/), [styles and assets](../styles-and-assets/) and [install hooks](../install-hooks/). 4. The reference: [Widget file](../widget-file-api/), [Render](../render-api/), [Settings script](../settings-api/) and [Editor classes](../editor-classes/). --- title: The widget file project: CMS version: 1.0 section: development language: en license: MIT url: https://totaljs.es/docs/cms/1-0/development/widget-file/ updated: 2026-11-19T11:56:32.080Z --- # The widget file > The sections of a widget file and what CMS does with each one. A widget is one HTML file made of sections. Each section is a tag at the top level of the file: ```html ``` Only `
Name
Align
Hello World
``` **Greeting** appears on the **Widgets** screen. A widget without a preview image shows an empty picture there. The identifier `greeting` must be unique. If another widget already has it, saving replaces that widget. ## Add it to a page 1. Open a page in the [visual editor](/cms/1-0/guides/visual-editor/). 2. Click the content area and choose **Add a widget**. 3. Click **Greeting**. ![The Greeting widget in the visual editor, with the floating panel above the editable word Hello](/files/Jaq7WP1p160f.webp) The word **Hello** has the class `CMS_edit`, so the user can click it and choose **Edit** to change it. **World** has no such class: it changes only through the settings. ## Change the settings 1. Click the widget and choose **Widget settings**, the gear button. 2. Enter a name and choose **Center** in **Align**. 3. Click **APPLY**. ![The Configuration window of Greeting with the Name and Align fields and the four options to hide the widget](/files/Jaq7WR1q161f.webp) The function `exports.save` writes the name into the `b` element and adds the class for the alignment. CMS stores the values in the page with the instance. **Save** the page. ## See it on the public site Open the page. The visitor sees the frame and the text: ```html
Hello World
``` CMS removes the `CMS_` classes of the editor and the `data-cms` attribute. It keeps the margins `CMS_mv` and `CMS_mh` and the class of the widget. ## Change the widget On the **Widgets** screen, click **Greeting** (or its gear button and **Edit**). Change the code and click **SUBMIT**. CMS compiles the widget again, and every page uses the new styles, settings and server code at once. Keep the same `exports.id` when you edit a widget. Pages refer to the widget by its identifier, and an instance whose widget does not exist is left out of the public page. The editor also removes such instances when it opens the page. --- title: Settings and their form project: CMS version: 1.0 section: development language: en license: MIT url: https://totaljs.es/docs/cms/1-0/development/settings/ updated: 2026-11-19T11:56:32.080Z --- # Settings and their form > Default values, the settings form and the script that applies the settings to an instance. Settings let the user configure each instance of a widget. You define three things: the default values in `exports.config`, the fields in ``, and a script that applies the values to the HTML of the instance. ## Default values ```js exports.config = { name: 'World', align: 'left' }; ``` The editor copies this object into each new instance. Make the `` match these values, because the HTML is what the user sees before the first change. ## The form Each field is a UI component with a `path` that starts with `?.` followed by the key of the setting: ```html
Name
Align
``` The official widgets use these components: | Component | Example | What it shows | |---|---|---| | `input` | `URL address` | A text field. `required:1` makes it mandatory. | | `input` with `type:checkbox` | `Rounded` | A checkbox for a `true` or `false` value. | | `input` with `type:number` | `Count` | A number field. | | `input` with `dirsource` | `Size` | A list to choose from, as `value\|Label` pairs. | | `choose` | `` with one `
` for each option | A row of swatches. The `data-id` of the selected one is the value. | | `configuration` | See below | A form built from a list of fields. | The `configuration` component takes the list of fields in a ` ``` The official widgets use the types `boolean`, `dropdown`, `number` (with `min` and `max`) and `string`, the default. `summary` adds a help text. `
What are your opening hours?
We are open from Monday to Friday.
Where are you?
In the city centre, next to the station.
``` ## Edit text, images, links and icons Add `CMS_edit` to an element to enable **Edit** in the floating panel: - **Text**: the user types into the element. `Enter` ends the editing, unless the element also has `CMS_multiline`, where `Enter` adds a line break. - **Image** (`img`): the user uploads or picks a picture. With `data-cms-width` and `data-cms-height`, the editor shows a grey placeholder of that size and opens a crop window, so every picture gets that size. - **Icon** (an element with the class `ti`): the user picks another icon. - **Link** (`a`): **Change link** changes its address and target. `CMS_attribute` enables **Change attributes**, which opens the [attributes editor](/cms/1-0/guides/element-attributes/) for classes, styles and other attributes. Elements with `CMS_edit` have it too. `CMS_unwrap` keeps the element in the editor and removes its tag on the public page, leaving only its content. Use it for a `span` that exists only to be editable. ## Repeat and remove - `CMS_repeat` enables **Duplicate**: the user adds a copy of the element after it. On a child of a repeated element, the panel also shows the arrows to move the repeated element up or down. - `CMS_remove` enables **Remove**. Copies made with **Duplicate** get `CMS_remove` too. Give the first item `CMS_repeat` only, and the others `CMS_repeat CMS_remove`, if the widget must always keep one item. ## Hold other widgets An element with `CMS_widgets` is an area where the user can add other widgets with **Add a widget**. Columns, boxes and panels use it. The area can be empty in the file. ## Content for the editor only An element with `CMS_editor` (or `CMS_trash`) appears in the editor and is removed from the public page. Use it for hints: ```html
This line is visible only in the editor.

A short note for the visitors.

``` The editor adds the class `CMS_preview` to the `body` of the page that it shows. Use it in your styles to show in the editor what visitors see only after a click, such as the answers of **Questions**: ```css .CMS_preview .CLASS-answer { display: block; } ``` All classes are listed in the [Editor classes reference](../editor-classes/). --- title: Rendering on the public site project: CMS version: 1.0 section: development language: en license: MIT url: https://totaljs.es/docs/cms/1-0/development/rendering/ updated: 2026-11-19T11:56:32.080Z --- # Rendering on the public site > Make the content of a widget on the server with render, its template, variables and cache. Without a server function, the public page shows the HTML that the user saved in the editor. Add `exports.render` to `
Label
You are reading the page title (shown on the public site)
``` On a page named **Demo custom**, the visitor sees: ```html
You are reading Demo custom (/demo-custom/) on a computer. Demo Company 11:45:34
``` ![Greeting, Page info, Questions and Support line on a public page](/files/Jaq7X62Z160f.webp) ## What render receives `opt` holds the configuration of the instance, its HTML, the template and the context of the request: the page, its address, the variables, the visitor and the controller. `next` takes the new content. All properties are in the [Render reference](../render-api/). `Tangular.render(template, model)` fills a Tangular template, and `{{ value }}` encodes the value as HTML. When you build HTML as text, encode what comes from outside with `.encode()`. ## Call next Call `next(content, replace, cache)` once, also when something fails: - `next(html)` puts the content inside the wrapper of the instance. The wrapper keeps its class, margins and the hide options. - `next(html, true)` replaces the whole wrapper. **Custom HTML code** does this to place the code as it is. With `replace`, an empty content removes the instance from the page. - `next(html, false, true)` keeps the result in a cache. ```js exports.render = function(opt, next) { if (!opt.config.url) return next(''); next(''.format(opt.config.url), true, true); }; ``` CMS replaces `CLASS` in `