Skip to main content
Version: vNext

Page Metadata

The metadata section is required on pages to allow the caching system to work as well as to populate key data points required for menu, site map and general site functionality.

Required Metadata Types

$this->setMetadata('id', 'home');

The unique URL for the page.

$this->setMetadata('page_title', 'Home');

The user friendly page title.

$this->setMetadata('menu_title', 'Home');

The user friendly menu title (Can be same as page title)

$this->setMetadata('menu_position', '1');

The numeric menu position on the menu starts at 1 and duplicate number will result in first enumerated page as first.

$this->setMetadata('menu_parent', 'home');

The page that is the parent for the current page.

$this->setMetadata('menu_stub', 'yes');

Menu stub page type for use when your file structure has the pages sorted in sub folders but a folder in the path don’t got a page defined for it. Can be set to yes/no.

Menu link page type that allows you to insert a link to any destination. Can be set to yes/no.

$this->setMetadata('menu_url', '{url goes here}');

The URL defined for the Menu Link page type when enabled.

$this->setMetadata('menu_target', 'self');

The target type for the Menu Link page type that accepts ‘blank’ to open as new window/tab and ‘self’ to open in same window/tab that defaults to ‘self.

$this->setMetadata('menu_visible', 'yes');

This defines if the page is visible in the menu or not. Can be set to yes/no.

$this->layout('templates:: default');

The template defined for the current page.