API:documentIdentifier

From MODx Wiki
Jump to: navigation, search
API Quick reference
Variable name: documentIdentifier
Modx versions: All
Variable type: Int
Object parent: DocumentParser


documentIdentifier

Description

Contains the current document ID of the page being viewed.

Examples

echo "Now viewing :".$modx->documentIdentifier;

Related

Notes

in 2.1.0 of revolution, this is deprecated and

$modx->resource->get('id');

is used instead.

Personal tools