public function getIdForPathAction()
{
if ($doc = Document::getByPath($this->getParam("path"))) {
$this->_helper->json(["id" => $doc->getId(), "type" => $doc->getType()]);
} else {
$this->_helper->json(false);
}
$this->removeViewRenderer();
}