API:documentContent

From MODx Wiki

Jump to: navigation, search
API Quick reference
Variable name: documentContent
Modx versions: > 9.5 Verified (may work in older versions.)
Variable type: string
Object parent: DocumentParser


documentContent

Description

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

Examples

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

Related

Notes

Personal tools