This documentation relates to Confluence 3.1.x
If you are using an earlier version, please view the previous versions of the Confluence documentation and select the relevant version.

Available Velocity Context Objects in Exporters

Since the export functionality is not implemented as a WebWork action, it does not inherit the Velocity context of an action. It creates its own context and populates it with a separate list of components. All exporters will inherit this context.

Velocity Reference Description Javadoc 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

Specific exporters may have additional context members. See their pages for details.

Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.