documentListing

Skip to end of metadata
Go to start of metadata

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
)

Labels

api api Delete
documentparser documentparser Delete
Enter labels to add to this page:
Please wait 
Looking for a label? Just start typing.