documentContent

Last edited by JP DeVries on Aug 10, 2013.

API:documentContent

API Quick reference
Variable name: documentContent
Modx versions: 0.9.x + Evolution
Variable type: int
Object parent: DocumentParser

Description

Contains the [*content*] of the page being viewed.

Usage / Examples

<?php
echo ( $modx->documentContent ); // note that executing this code inside the [*content*] field will cause a loop.
?>

Notes

Suggest an edit to this page on GitHub (Requires GitHub account. Opens a new window/tab).