Mecha CMS

Mecha CMS blog and documentation.

Page Types

Updated: Sunday, 07 August 2016

The available page types.

Table of Content

Page types are stored in $config->page_type

PagePage Type
Home
Articlearticle
Pagepage
Indexindex
Archivearchive
Tagtag
Searchsearch
Managermanager
404404
Feedfeed
Sitemapsitemap

Usage

if($config->page_type === 'article') {
    echo 'We are in the article page.';
}
Donation and Email Subscription