我正在尝试使用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();
}
}这样做的目的是为了确保所有视图都有从主页到下方的直接路径。
相反,它没有显示最后几个步骤(如果需要,我可以进一步解释)
为什么会发生这种情况?
发布于 2012-04-14 06:51:43
这是因为视图和面包屑之间没有交互。要获得这样的交互,您需要使用定制模块"Custom Breadcrumbs“
https://stackoverflow.com/questions/9840117
复制相似问题