GetHierarchyManager(); $node = $manager->sureGetNodeByAlias($params['detailpage']); if ($node) { $content = $node->GetContent(); if ($content) { $detailpage = $content->Id(); } } else { $node = $manager->sureGetNodeById($params['detailpage']); if ($node) { $detailpage = $params['detailpage']; } } $params['origid'] = $returnid; } unset($params['detailpage']); $title = isset($params['title'])?$params['title']:'link'; unset($params['title']); unset($params['origid']); $withslash = (isset($params['withslash']))?true:false; unset($params['withslash']); echo $this->CreateLink($id,$action,$detailpage,$title,$params,'',false,false,'',false,'',$withslash); } return;