Templates

Templates define the structure of pages in your Members Area. They serve as data storage for the visual theme editor and determine which sections appear on a page.

Available Templates

Currently, only two pages can be customized:
  • Login page (login.json) - The authentication page
  • Home page (index.json) - The main dashboard page
These files follow a fixed structure and cannot be deleted or renamed. You also cannot create new pages in this folder.

Template Format

Templates are JSON files with a specific schema:
{
  "order": ["section-id-1", "section-id-2", "section-id-3"],
  "sections": {
    "section-id-1": {
      "type": "banner",
      "settings": { 
        // Section settings
      },
      "blocks": {
        // Optional blocks within the section
      },
      "block_order": ["block-id-1", "block-id-2"]
    },
    "section-id-2": {
      "type": "modules",
      "settings": {
        // Section settings
      }
    }
    // Additional sections...
  }
}

Limitations

  • Templates are auto-generated files that can be edited by both the code editor and theme editor
  • Each template can render up to 25 sections
  • Each section can have up to 50 blocks

How Templates Work

When you edit a template in the theme editor:
  1. The theme editor reads the template JSON file
  2. It renders UI controls based on section schemas
  3. Any changes you make are saved back to the JSON file
  4. The page is re-rendered with your changes
You can also edit these files directly in the code editor by clicking “Code Editor” button.