// Add the current document as a breadcrumb item CRM_Utils_System::appendBreadCrumb('Current Document'); // Add a new breadcrumb item for the Case Details page $caseId = 123; // the ID of the current case $caseTitle = 'Case #123'; // the title of the current case CRM_Utils_System::appendBreadCrumb($caseTitle, CRM_Utils_System::url('civicrm/case/view', 'reset=1&id=' . $caseId)); // Add a new breadcrumb item for the Contact Details page $contactId = 456; // the ID of the current contact $contactName = 'John Doe'; // the name of the current contact CRM_Utils_System::appendBreadCrumb($contactName, CRM_Utils_System::url('civicrm/contact/view', 'reset=1&cid=' . $contactId));This function is a part of the CiviCRM package library.