Skip to content

Variable descriptions

Patrick Upson edited this page Mar 14, 2014 · 2 revisions

Table of Contents

Template Variables

The following variables are used to apply specific templates to webpages only one may be specified per page

$_PAGE['issplash']

Used to define a page as a splash page. If $_PAGE['issplash'] = 1 is set in the variable description part of a webpage then the page will be rendered using the splash page templates.

$_PAGE['isapp']

Not used in v4.0 as of yet, but denotes that the page is an application and will apply application page templates.

$_PAGE['isserv']

Not used in v4.0 as of yet, but denotes that the page is an server page and will apply server page templates. Example: 404 Not Found

Additions

The following can be used to add objects to a page

$_PAGE['isarchived']

Adds the archived template if $_PAGE['isarchived'] = 1 is in the variable description part of a webpage.

$_PAGE['signin']

Not used in v4.0 as of yet, but denotes that the page should contain a log in/out button

$_PAGE['signout']

Not used in v4.0 as of yet, but denotes that the page should contain a log in/out button

Removals

The following can be used to remove elements from a page

$_PAGE['nolang']

Turns the language selection options in the top right off if $_PAGE['nolang'] = 1 is in the variable description part of a webpage.

$_PAGE['nosearch']

Turns the search bar off if $_PAGE['nosearch'] = 1 is in the variable description part of a webpage.

$_PAGE['nositemenu']

Turns the mega menu off if $_PAGE['nositemenu'] = 1 is in the variable description part of a webpage.

$_PAGE['nobcrumb']

Turns the bread crumb trail off if $_PAGE['nobcrumb'] = 1 is in the variable description part of a webpage.

Hooks

The following can be used to add attributes to specific tags

$_PAGE['bodytag']

Initial value is null, when set can be used to add attributes to the body tag of a site
Example: $_PAGE['bodytag'] = "class=\"custom_body\""; added to a page's variable description area or a sites config.php file will create the HTML body tag as <body vocab="http://schema.org/" typeof="WebPage" class="custom_body">