function GetIBlockSectionPath($IBLOCK, $SECT_ID) { return CIBlockSection::GetNavChain(IntVal($IBLOCK), IntVal($SECT_ID)); }
$nav = CIBlockSection::GetNavChain(false,$Section['ID']); while($arSectionPath = $nav->GetNext()){ if ($GLOBALS['USER']->IsAdmin()){ echo '<pre>';print_r($arSectionPath);echo '</pre>';} }