-
Notifications
You must be signed in to change notification settings - Fork 21
Variable descriptions
The following variables are used to apply specific templates to webpages only one may be specified per page
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.
Not used in v4.0 as of yet, but denotes that the page is an application and will apply application page templates.
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
The following can be used to add objects to a page
Adds the archived template if $_PAGE['isarchived'] = 1
is in the variable description part of a webpage.
Not used in v4.0 as of yet, but denotes that the page should contain a log in/out button
Not used in v4.0 as of yet, but denotes that the page should contain a log in/out button
The following can be used to remove elements from a page
Turns the language selection options in the top right off if $_PAGE['nolang'] = 1
is in the variable description part of a webpage.
Turns the search bar off if $_PAGE['nosearch'] = 1
is in the variable description part of a webpage.
Turns the mega menu off if $_PAGE['nositemenu'] = 1
is in the variable description part of a webpage.
Turns the bread crumb trail off if $_PAGE['nobcrumb'] = 1
is in the variable description part of a webpage.
The following can be used to add attributes to specific tags
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">