Available Velocity Context Objects in Exporters

Still need help?

The Atlassian Community is here for you.

Ask the community

Since the export functionality is not implemented as a WebWork action, it does not inherit the default Velocity context used by Confluence actions. It creates its own context and populates it with a separate list of components.

All exporters have at least the items listed below. Some exporters may extend this with other objects.

Variable

Description

Class Reference

$generalUtil

A GeneralUtil object with several useful methods, including URL encoding.

GeneralUtil

$textUtil

Common utilities for string manipulation.

TextUtils

$rendererBean

Mostly for internal use, but can also be used for manipulating page or space exports.

WikiExporter

$exportDate

A java.util.Date created when the export is actually performed.

Date

$exportContent

An ExportContext object which holds the context in which the export is performed, such as the user performing the export.

ExportContext

$dateFormatter

Provides a date and time formatter suitable for the exporting user's locale and environment.

DateFormatter

$baseUrl

The base URL of the Confluence installation (http://<server>:<port>/contextPath).

String

See also
Last modified on Oct 7, 2015

Was this helpful?

Yes
No
Provide feedback about this article
Powered by Confluence and Scroll Viewport.