MODX Cloud

The Most Productive MODX Learning Playground Ever

Claim Free Lab Account

documentObject

Skip to end of metadata
Go to start of metadata

API:documentObject

API Quick reference
Variable name: documentObject
Modx versions: 0.9.x + Evolution
Variable type: array
Object parent: DocumentParser

Description

Contains the document object.

Usage / Examples

<?php
	echo ( '<pre>' );
	print_r($modx->documentObject);
	echo ( '</pre>' );
	die;
?>

Related

See also, this page on [Understanding the Document Object]

Notes

Array
(
    [id]
    [type]
    [contentType]
    [pagetitle]
    [longtitle]
    [description]
    [alias]
    [link_attributes]
    [published]
    [pub_date]
    [unpub_date]
    [parent]
    [isfolder]
    [introtext]
    [content]
 
[[Session]]
    [richtext]
    [template]
    [menuindex]
    [searchable]
    [cacheable]
    [createdby]
    [createdon]
    [editedby]
    [editedon]
    [deleted]
    [deletedon]
    [deletedby]
    [publishedon]
    [publishedby]
    [menutitle]
    [donthit]
    [haskeywords]
    [hasmetatags]
    [privateweb]
    [privatemgr]
    [content_dispo]
    [hidemenu]
)

Labels

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