getIdFromAlias

Returns the ID of the document by URL

string getIdFromAlias(string $alias);

$alias - document alias

Пример

    $id = $modx->getIdFromAlias('folder/folder/doc.html')
Mem: 3.75 mb, MySQL: 0.0023 s, 3 req., PHP: 0.0322 s, all: 0.0345 s, cache.