【问题标题】:How to show breadcrumbs on my pages in magento?如何在 magento 的页面上显示面包屑?
【发布时间】:2011-11-28 08:02:10
【问题描述】:

我想在 1column.phtml 页面上显示面包屑。 我尝试了以下

<?php  echo $this->getLayout()->getBlock("breadcrumbs")->toHtml()?>

但它给了我以下错误。

Fatal error: Call to a member function toHtml() on a non-object

那么我应该怎么做才能在我的页面上显示面包屑?

【问题讨论】:

  • 我也被卡住了!!!我是 magento 1.7.0.2 的新手!!!我不知道如何在页面上显示面包屑!!!你解决了我的问题!!!非常非常感谢!!

标签: magento breadcrumbs


【解决方案1】:

这个问题在许多论坛中提出并解决。我认为这对你有用

文件路径

\app\design\frontend\default\themename\layout\page.xml

查找

<block type="core/profiler" output="toHtml"/>

替换为

<block type="core/profiler" output="toHtml" name="core_profiler"/>

【讨论】:

    猜你喜欢
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    • 1970-01-01
    相关资源
    最近更新 更多