getRequest()->getUri()->getPath(); if(!$node = lmbCmsNode :: findByPath($path)) return new lmbCollection(); $parents = $node->getParents(); $result = array(); $skip_root = true; $path = ''; foreach($parents as $parent) { if($skip_root) { $skip_root = false; continue; } $path .= '/' . $parent->get('identifier'); $parent->setUrlPath($path); $result[] = $parent; } $node->setUrlPath($path . '/' . $node->getIdentifier()); $node->setIsLast(true); $result[] = $node; return new lmbCollection($result); } } ?>