2020-04-07 16:17:00 -04:00
CommonProps :
type : object
properties :
loggedIn :
type : boolean
2020-04-08 22:15:40 -04:00
description : True if user is logged in, false otherwise
2020-04-07 16:17:00 -04:00
relative_path :
type : string
description : |
2020-04-08 22:15:40 -04:00
If NodeBB is installed in a subfolder this becomes the path to the forum. For example if your forum url is
`example.org/community` then relative_path will be `/community`. If your forum url is `example.com` then relative path will be an empty string.
2020-04-07 16:17:00 -04:00
template :
type : object
properties :
name :
type : string
2020-04-16 20:38:40 -04:00
description : The path to the template, which acts as a unique name
example : admin/settings/general
2020-04-07 16:17:00 -04:00
additionalProperties :
2020-04-16 20:38:40 -04:00
description : There will be one additional property added to all routes here. It is a boolean value whose key is the path to the current template. It is used on the client-side to verify the current page inside of a conditional (e.g. `if (ajaxify.data.template.topic)` to ensure a script is run only on the topic page)
type : boolean
enum : [ true ]
2020-04-07 16:17:00 -04:00
url :
type : string
2020-04-08 22:15:40 -04:00
description : Base url of the current page, does not include query params
2020-04-07 16:17:00 -04:00
bodyClass :
type : string
2020-04-08 22:15:40 -04:00
description : The css class string that is appended to the body element
2020-04-07 16:17:00 -04:00
_header :
type : object
2020-04-08 22:15:40 -04:00
description : List of meta and link tags that are added to the head element
2020-04-07 16:17:00 -04:00
properties :
tags :
type : object
properties :
meta :
type : array
items :
type : object
properties :
name :
type : string
content :
type : string
noEscape :
type : boolean
property :
type : string
required :
- content
link :
type : array
items :
type : object
properties :
rel :
type : string
type :
type : string
href :
type : string
title :
type : string
sizes :
type : string
2020-07-03 12:12:07 -04:00
as :
type : string
2020-04-07 16:17:00 -04:00
required :
- rel
- href
widgets :
type : object
2020-04-23 21:50:08 -04:00
description : Each widget area will have its own property in this object
additionalProperties :
type : array
description : A collection of HTML snippets that are appended to each widget area
items :
type : object
properties :
html :
type : string