Developing for the CMS
The Elements CMS is a powerful content management system designed for RapidWeaver elements, providing a flexible and efficient way to manage content through markdown files with YAML front matter.
Table of Contents
Getting Started
require_once 'path/to/cms.php';
// Initialize CMS with base path and options
$cms = cms('/path/to/content', [
'detailPageUrl' => 'https://example.com/posts',
'prettyUrls' => true
]);Core Concepts
Collections
Items
Working with Collections
Basic Collection Operations
Advanced Filtering
Working with Items
Loading and Accessing Items
Item Relationships
Search Functionality
PHP Search
AJAX Search Endpoint
Related Items
RSS and Sitemap Generation
RSS Feed
XML Sitemap
Best Practices
Dependencies
Error Handling
Support
Last updated
Was this helpful?

