-
- 928 Posts
The API pages on the wiki are a bit of a maze - these functions come under API:DocumentParser. If you know (or guess) the name of the API function, it can be easier to use the wiki’s Search box than pick your way through the API categories.
Both functions do pretty much what you’d expect:
$modx->documentIdentifier contains the database ID number of the current document
$modx->getChunk() returns the contents of the chunk named as its parameter
KP