Documentation

Learn to dance with the Banana!

Standard Replacements

The following variable replacements are always available on the pages and views. Unlike custom variables, these variables cannot be changed.

List of Variables

Variable Description
assets URL to the "assets" folder for your theme.
wiki_name Name of your wiki, as established in your config file.
wiki_theme Name of your active theme.
wiki_base_url The base URL to your wiki.
branding_color Your primary branding color, as established in your config file.
languages A list of available languages with built in links.
currentLanguage The current language the user is browsing the wiki in.
query Search query.
navigation Primary navigation for the wiki.
created Date the file was last modified.

Note: many file systems (including most Unix filesystems) do NOT track the date a file was created. In those cases, this will be the same as the "modified" date.
timeSinceCreation A "human readable" timestamp, example "7 days" or "3 hours". See "created" above for notes on how this works.
modified Date the file was last modified.
timeSinceModified A "human readable" timestamp, example "7 days" or "3 hours".
content The content of the page. Only available on the page.phtml view.
innerHeadings Internal navigation for the page, based on the headers.

Using Variables on Templates

You can inject any variable into a page using a double bracket syntax:

{{ variable_name }}

For a pure PHP solution, you can also use the $var array:

<?php
var_dump($var['variable_name']);
?>

Custom Variables

You can also create custom variables for use on pages and views. Please see the "custom variables" page for information.

Last modified 2 years ago.