Adding Custom Pages
SiteX allows you to create custom static pages beyond the built-in content types.
Creating a Custom Page
From the admin panel:
- Navigate to Pages → Add New
- Enter the page title
- Set the URL slug (e.g.,
aboutfor/about) - Write the page content using the editor
- Choose a page template (default, full-width, or sidebar)
- Configure SEO meta fields
- Publish
Page Templates
| Template | Description |
|---|---|
| Default | Standard page with header, content area, and footer |
| Full Width | Content spans the full viewport width |
| With Sidebar | Content area with a right sidebar for widgets |
| Landing Page | Minimal header/footer, optimized for conversions |
Custom Page Templates
You can create your own page templates by adding PHP files to your theme:
themes/default/pages/
├── page.php (default template)
├── page-fullwidth.php
├── page-sidebar.php
├── page-landing.php
└── page-custom.php (your custom template)
Register the template in theme.json:
{
"page_templates": {
"custom": "My Custom Layout"
}
}
Adding PHP Logic
For pages that need dynamic functionality (e.g., a calculator, a form, a data-driven page), you can create a custom controller and route. See the developer section in the SiteX source code for examples.