OnParseDocument
Last updated Oct 14th, 2026 | Page history | Improve this page | Report an issue
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$186 per month—let's make that $500!
Learn moreEvent: OnParseDocument¶
Fires each time the Element tags are parsed. This can happen many times during the loading of a Resource.
- Service: 5 - Template Service Events
- Group: System
Event Parameters¶
| Name | Description |
|---|---|
| content | The document content being parsed, passed by reference. Also available as $modx->documentOutput. |
See Also¶
Support the team building MODX with a monthly donation.
The budget raised through OpenCollective is transparent, including payouts, and any contributor can apply to be paid for their work on MODX.
Backers
Budget
$186 per month—let's make that $500!
Learn more










