library/core/class.controller.php
public function AddBreadcrumb($Name, $Link = NULL, $Position = 'back') {
      $Breadcrumb = array(
         'Name'   => T($Name),
         'Url'    => $Link
      );
      
      $Breadcrumbs = $this->Data('Breadcrumbs', array());
      switch ($Position) {
         case 'back':
            $Breadcrumbs = array_merge($Breadcrumbs, array($Breadcrumb));
            break;
         case 'front':
            $Breadcrumbs = array_merge(array($Breadcrumb), $Breadcrumbs);
            break;
      }
      $this->SetData('Breadcrumbs', $Breadcrumbs);
   }
public function AddBreadcrumb($Name, $Link = NULL, $Position = 'back') {
      $Breadcrumb = array(
         'Name'   => T($Name),
         'Url'    => $Link
      );
      
      $Breadcrumbs = $this->Data('Breadcrumbs', array());
      switch ($Position) {
         case 'back':
            $Breadcrumbs = array_merge($Breadcrumbs, array($Breadcrumb));
            break;
         case 'front':
            $Breadcrumbs = array_merge(array($Breadcrumb), $Breadcrumbs);
            break;
      }
      $this->SetData('Breadcrumbs', $Breadcrumbs);
   }
public function AddBreadcrumb ( $ Name , $ Link = NULL , $ Position = 'back' ) { $ Breadcrumb = array ( 'Name' => T ( $ Name ) , 'Url' => $ Link ) ; $ Breadcrumbs = $ this -> Data ( 'Breadcrumbs' , array ( ) ) ; switch ( $ Position ) { case 'back' : $ Breadcrumbs = array_merge ( $ Breadcrumbs , array ( $ Breadcrumb ) ) ; break ; case 'front' : $ Breadcrumbs = array_merge ( array ( $ Breadcrumb ) , $ Breadcrumbs ) ; break ; } $ this -> SetData ( 'Breadcrumbs' , $ Breadcrumbs ) ; }
Add a breadcrumb to the list

@param string $Name Translation code
@param string $Link Optional. Hyperlink this breadcrumb somewhere.
@param string $Position Optional. Where in the list to add it? 'front', 'back'
Add a breadcrumb to the list