Mecha CMS

Add extra functionality to the core engine.

Candy

Table of Contents
  1. Page 
  2. Site 
  3. State 
  4. Time 
  5. URL 
  6. Custom 

Embed global variables in page content.

Download Version 1.5.1 Download Development Version

Something looks broken? We accept bounties to fix them faster.

Common patterns:

Page 

  • %{page.url}%
  • %{page.title}%
  • %{page.description}%
  • %{page.link}%
  • %{page.author}%

Site 

  • %{site.title}%
  • %{site.description}%
  • %{site.language}%

State 

  • %{state.title}%
  • %{state.description}%
  • %{state.language}%

Time 

  • %{time.year}%
  • %{time.month}%
  • %{time.en}%

URL 

  • %{url}%
  • %{url.protocol}%
  • %{url.host}%
  • %{url.port}%
  • %{url.d}%
  • %{url.i}%
  • %{url.path}%
  • %{url.query}%
  • %{url.current}%

Custom 

Add your custom syntax or replace the default syntax in the v property, remove the default syntax in x:

[
    'v' => [
        'asset' => 'https://mecha-cms.com/lot/asset'
        …
    ],
    'x' => [ … ]
]