Skip to content

Commit

Permalink
implement site map url detection for path
Browse files Browse the repository at this point in the history
  • Loading branch information
Michael committed Apr 25, 2011
1 parent bc58841 commit c6a5b9e
Showing 1 changed file with 11 additions and 1 deletion.
12 changes: 11 additions & 1 deletion classes/sitelink.class.php
Original file line number Diff line number Diff line change
Expand Up @@ -210,7 +210,17 @@ function path(){
break;
}
}
return array_reverse(array_slice($PathArray,0,++$key));
$PathArray=array_reverse(array_slice($PathArray,0,++$key));
if($GLOBALS['eZRequestedModuleParams']['module_name']=='content' && $GLOBALS['eZRequestedModuleParams']['function_name']=='view' && $GLOBALS['eZRequestedModuleParams']['parameters']['ViewMode']=='sitemap'){
$PathArray[0]['current']=false;
$PathArray[]=array(
'node_id'=>false,
'text'=>'Site Map',
'url_alias'=>false,
'current'=>true
);
}
return $PathArray;
}

function setObjectNode($object=false){
Expand Down

0 comments on commit c6a5b9e

Please sign in to comment.