0
我想爲Drupal Views的麪包屑做路徑。我沒有與這麼多的經驗,但是我的代碼是這樣的:Drupal中的麪包屑/視圖
function CLIENTNAME_preprocess_breadcrumb(&$variables) {
if (!empty($variables['breadcrumb'])) {
// Adding the title of the current page to the breadcrumb.
$variables['breadcrumb'][] = drupal_get_title();
}
}
這樣做的目的是確保所有的意見都在家下來的直接路徑。
相反,它沒有顯示最後幾步(我可以進一步解釋如果需要的話)
爲什麼會這樣發生?