Template Structure

This section outlines the fundamental structure of a template, detailing how components, pages, and sections work together.

Template Hierarchy

1. Global Elements

These elements are shared across the entire website and remain consistent on all pages:

  • Header: Contains the logo, main navigation, language switcher, etc.
  • Footer: Includes links, contact information, social media, and copyright.

2. Pages

Templates are built on multiple types of pages, each serving a specific purpose:

  • Editable Pages: Home, About, Contact, List, Detail, etc.
  • Non-Editable Pages: Login, Profile, Checkout, etc.

3. Sections

Pages are composed of sections, which are modular components that can be reused and rearranged:

  • Hero Section
  • Gallery Section
  • Video Section
  • Text Section
  • Etc...

Content Flow

1. Field-Level Customizations

Each section has predefined fields (e.g., title, description, images) that can be filled or updated via the web builder.

2. Dynamic Content

Templates can fetch dynamic data (e.g., posts, tours, products) from the CMS, making them suitable for scalable websites.


Responsive Design

Templates are designed to be responsive by default:

  • Desktop, tablet, and mobile layouts are supported.
  • Breakpoints can be adjusted if required.

SEO and Accessibility

Templates are built with SEO and accessibility in mind:

  • SEO Fields: Meta titles, descriptions, and Open Graph tags.
  • Accessibility Features: ARIA roles, keyboard navigation, and color contrast compliance.

Best Practices

1. Reusability

Sections are designed to be reusable across multiple pages.

2. Modularity

Each section works independently, making it easier to update or replace without affecting other sections.

3. Performance Optimization

  • Use lazy loading for images and videos.
  • Minify CSS and JavaScript for faster loading.

Example Layout

Template Structure:
  ├── Header
  ├── Home Page
  │   ├── Hero Section
  │   ├── Gallery Section
  │   └── Text Section
  ├── About Page
  │   ├── Hero Section
  │   └── Image with Text Section
  ├── Footer