Context Processors

Context Processors add in extra information into templates. Templates then always have access to certain information.

Standard Portal

request
The request object.
PREVIEW_URL
String for a path to show previews of assets.
SITE_HELP
A text string set in portal.conf to be rendered when errors occur.
SITE_I18N
Checks to see whether USE_I18N is true, for show the language choice.
SITE_NAME
A globally set (in portal.conf) configuration for a name that can be used everywhere for the site.
SITE_URL
A globally set (in portal.conf) configuration for a URL for the site.
STATIC_URL
URL that handles the media served from MEDIA_ROOT.
PREVIEW_URL
URL to where previews are hosted. Optional.

Translation system

LANGUAGES
If you are using the translation system, the value that of the language that a user is seeing.
LANGUAGE_CODE
The two letter ISO language code.

Themes

theme
Current theme to use.
themelogo
Image for the current theme.
cssfile
CSS file to serve up

Notices

notice_unseen_count
Notices unseen by this user

Realtime support

REALTIME_ENABLED
Whether the realtime feedback system is enabled
REALTIME_SERVER
Location of the realtime server

MediaBin

mediabincount
Current authorized user’s mediabin collection count.

Users

user
The currently logged in user. If the user is not logged in it will resolve to an authenticated user.
messages
Object of System messages from the UI to the user.
perms
Permissions for the user