Skip to main content
Separating raw data (like team members, service features, or global navigation links) into dedicated array loops keeps your core src/pages/ codebase small, legible, and easy to maintain. Squeditor provides an elegant Data Layer configuration model specifically for this purpose.

Global Site Configuration

The src/config/site-config.php file operates as your global configuration state. It is inherently loaded via the master base.php template. Any configuration set in $site is instantaneously available across all files.
site-config.php
Usage Example Inside src/template-parts/header.php, the $site variable seamlessly integrates dynamic navigation mapping.
header.php

Isolated Data Loops

To prevent large .php page files from becoming overly complicated to read, declare repetitive item sets (like grids, team bios, or portfolios) as standard PHP associative arrays within the src/data/ directory. Declaring Data Arrays Example: src/data/team.php
team.php
Extending Data Arrays Into Layouts Require the data file manually on any page or specific section block you need exactly mapped. Example: src/pages/about.php
about.php