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.0024 s, 3 req., PHP: 0.0353 s, all: 0.0377 s, cache.