API:documentObject

From MODx Wiki
Jump to: navigation, search


API Quick reference
Variable name: documentObject
Modx versions: > 9.5 Verified (may work in older versions.)
Variable type: array
Object parent: DocumentParser


documentObject

Description

Contains the document object.

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]
)
Personal tools