Pages
Pages in Elemental CMS follow a clean, direct approach. Each page is self-contained with its own spec and content files, dependencies are loaded directly without bundling or minification, and resources are organized by language for clear multilingual support.
Creating Pages #
Create a new page with a clean, focused structure:
Managing Pages #
Listing Pages
Pushing Pages
Pulling Pages
Publishing Pages
Unpublishing Pages
Removing Pages
Comparing Pages
Page Dependencies #
Pages can include their own dependencies, loaded directly and only when needed:
Key points about page dependencies:
- Each dependency is a separate, focused file
- No bundling or minification needed
- Files are loaded directly when the page loads
- Clear organization by purpose and language
Important Notes #
Draft vs Published
Pages follow a simple workflow:
push
: Creates/updates draft versionpublish
: Makes page accessible on the webunpublish
: Returns to draft state
Batch Operations
Some commands support --all
for bulk operations:
Backup System #
The system automatically creates backups when updating existing pages:
Example Page Structure
A complete page example showing the clean, direct approach:
This approach ensures your pages remain clean, maintainable, and efficient, loading only the resources they need when they need them.