API:documentContent
From MODx Wiki
| API Quick reference | |
|---|---|
| Variable name: | documentContent |
| Modx versions: | > 9.5 Verified (may work in older versions.) |
| Variable type: | string |
| Object parent: | DocumentParser |
[edit]
documentContent
[edit]
Description
Contains the [*content*] of the page being viewed.
[edit]
Examples
<?php echo ( $modx->documentContent ); // note that executing this code inside the [*content*] field will cause a loop. ?>
[edit]
Related
[edit]
