documentListing
API:documentListing
API Quick reference
Variable name: | documentListing |
Modx versions: | 0.9.x + Evolution |
Variable type: | array |
Object parent: | DocumentParser |
Description
Contains the document Listing (tree) like the sitemap
Usage / Examples
<?php echo ( '<pre>' ); print_r($modx->documentListing); echo ( '</pre>' ); die; ?>
Related
See also, this page on Understanding the Document Object
Notes
It will contain a list for all url's in your site with the document id's
This example output is friendly url's enabled:
Array ( [content] => id [parent alias] => document id [parent alias/child alias] => document id )
Suggest an edit to this page on GitHub (Requires GitHub account. Opens a new window/tab).