The CMS in Sugester 2 allows you to create marketing pages, landing pages, and documentation without writing backend code. The system is based on Liquid templates.
CMS Structure
The CMS consists of four main elements:
1. Site
The main container for pages. Each site can have:
- Its own domain (e.g., mojafirma.pl)
- Its own default layout
- A set of pages
2. Layout
An HTML template with Liquid that defines the structure of the page:
- Header and footer
- Navigation menu
- CSS styles
- SEO meta tags
- Placeholder for content (
{% for p in paragraphs %}{{ p }}{% endfor %})
3. Page
A single page with:
- URL path (e.g.,
/dashboard,/en) - Fields - variables available in the layout
- Assigned paragraphs
4. Paragraph
A block of HTML content assigned to a page:
- Hero, features, pricing, contact sections
- Priority determines the display order
- Can be assigned to multiple pages
Data Flow
Domain → Site → Page → Layout + Paragraphs → Rendered page
↓
fields (variables)
Example
For the page https://mojafirma.pl/dashboard:
- The domain
mojafirma.plpoints to SiteMojaFirma-marketing - The path
/dashboardmaps to a Page with pathDashboard - The Page has fields:
{lang: 'pl', product: 'Dashboard', title: '...'} - The Layout renders HTML with these variables
- Paragraphs insert content in place of
{{ p }}
API Endpoints
| Resource | Endpoint |
|---|---|
| Sites | /cms/sites.json |
| Layouts | /cms/layouts.json |
| Pages | /cms/pages.json |
| Paragraphs | /cms/paragraphs.json |
Each endpoint supports CRUD operations with an API token.